< Toggle Sidebar > Toggle Sidebar

Shortcode for Yoast Local SEO

The power of Yoast Local is all based on Short codes.

They have a great array of short codes you can use.

Take a view through the documentation and visit official documentation for Yoast SEO Local.

Our short codes are mostly extensions of the existing short codes.

In each of these Topics we cover of how to use the short codes within the details page for each location using the Divi Builder.

Short code for Alphabetically Grouped Locations

Ever since the invention of a directory we have looked for places by alphabetical listings.

This short code adds this feature to Yoast Local.

If you have ever asked how can I list all locations grouped alphabetically, this is the answer.

We also have links to the individual location page, which is another handy SEO feature.

Using Yoast Local SEO

We use Yoast SEO Local a lot in our custom web development.

We wanted to create a short code that will use locations data from the Yoast SEO Local’s and create a directory listing.

We wanted to provide a breadcrumb navigation since locations are alphabetically grouped.

This navigation will help users to navigate to the relevant locations without scrolling too much.

Hence we’ve added a [df_wpseo_alphabetical_locations_list /] short code to the Yoast Local SEO Toolkit plugin.

This short code creates a grid with 4 columns in desktop, 3 columns in tablet and 2 columns in mobile.

Change the padding and list styling of the location items using theme customise settings.

The theme customise panel is “DF Yoast Local Toolkit”.
The customise panel is Single Alphabet Locations List

[df_wpseo_alphabetical_locations_list /] short code doesn’t have any attributes.

Example of an Alpha Listing Shortcode for Locations
Example of an Alpha Listing

You can view a demo  of the alphabetically grouped location listing on this website: https://www.cvgt.com.au/contact-us/office-locator-listing/

Address Shortcode.

The short code is named as [df_wpseo_address].

All attributes other than id can be used. Details about official documentation are at https://kb.yoast.com/kb/configuration-guide-for-local-seo/#address-shortcode.

Map Short code

The short code is named as [df_wpseo_map]. All attributes other than id can be used.

Details about official documentation are at https://kb.yoast.com/kb/configuration-guide-for-local-seo/#map-shortcode.

Opening Hours Short code

This short code is named as [wpseo_opening_hours]. All attributes other than id can be used.

Details about official documentation are at https://kb.yoast.com/kb/configuration-guide-for-local-seo/#opening-hours-shortcode.

Yoast Local SEO for Divi Theme

Yoast Local SEO Toolkit

Get the most out of Yoast Local SEO plugin by using the Divi Builder for your location pages. 
Learn More