In this tutorial, we’ll show you how you can use Rank Math to display your Local Business location data using shortcodes.
Fortunately, if you’re using the Gutenberg Block Editor, this is even easier as we have a Local Business by Rank Math Block that makes it extremely easy to add Location Data for Multiple Locations, as shown below:
However, if you’re using the Classic Editor or a page builder (such as Elementor), using the Location Data shortcode is the easiest way to add this to your posts & pages.
To get started, open Rank Math’s Schema Generator, accessible via the sidebar in the Gutenberg Block Editor
Or from Rank Math’s Metabox which is visible in the Classic Editor typically at the end after the post edit area:
Once opened, you’ll see the LocalBusiness Schema. Proceed to edit – which will bring up the following screen where you can find your location’s shortcode:
The Location ID is the Post ID of the Rank Math Location post that you’ll create for a location:
When using Rank Math PRO’s Local SEO Module to create multiple locations – you can easily auto-generate your KML sitemap for business locations. Learn more here.
Rank Math’s Local SEO Attributes
Rank Math makes the following attributes available:
This attribute lets you mention the address, opening-hours, map, store-locator. By default it is set to address.
This attribute is the ID of the location to be shown. By default it is set to show all locations.
This attribute indicates the location to show from a specific Location category.
This attribute indicates the number of location to show.
Show Company Name
By default this attribute is set to true and displays the name of the company.
Show On One Line
This attribute displays the company’s address in one line. By default it is set to false.
This attribute displays the State of your Business and by default, it is set to true.
This attribute displays the country’s name of your Business and by default, it is set to true.
This attribute displays the telephone number and by default is set to true.
Show Secondary Number
This attribute displays the secondary number and by default is set to true.
This attribute displays the fax and by default it is set to false.
This attribute displays the email address and by default it is set to true.
This attribute displays the logo and by default it is set to true.
Show VAT ID
This attribute displays the VAT ID and by default it is set to false.
Show Tax ID
This attribute displays the tax ID and by default it is set to false.
Show Chamber of Commerce ID
This attribute displays the chamber of commerce ID and by default it is set to false.
Show Price Range
This attribute displays the price range and by default it is set to false.
Show Opening Hours
This attribute displays the opening hours of your business and by default it is set to false.
This attribute displays the opening hour of a specific day. Default Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
Hide Closed Days
This attribute hides the days when your business is closed or not working. By default it is set to false.
Show Opening Now Label
This attribute displays the Open Now label when a company is currently open based on the user’s timezone. It is enabled by default.
Opening Hours Note
This attribute adds a note after Opening hours data.
This attribute displays the map and is by default it is set to false.
This attribute displays the map style. By default it shows roadmap.
This attribute displays the width of the map. By default it is set to 100%.
This attribute displays the height of the map. By default it is set to 300px.
This attribute displays the map zoom level. By default it is set to -1.
This attribute is used in map and lets you zoom. By default it is set to true.
This attribute is used in the map and allows scrolling. By default, it is set to true.
This attribute is used in the map and allows dragging. By default, it is set to true.
Show Route Planner
This attribute is used in map to display the route planner. By default, it is set to true.
This attribute is used in map and you can use the value from the Settings.
Show Category Filter
This attribute filters displays
filter locations by Category dropdown in Map. By default, it is set to false.
Show Marker Clustering
This attribute is used in map and by default it is set to false.
Show Info Window
This attribute is used in map and by default it is set to true.
This attribute displays the radius and is used in the map. By default, it is set to true.
Show Nearest Location
This attribute displays whether to show the Location nearest to the current location of the user. By default, it is set to true.
This attribute is used in Store Location to search locations within the given radius – Default 10 in kilometers, can be changed to miles from the Titles & Meta settings as shown below:
We hope that this tutorial has helped you to display the location data using a shortcode. However, if you still have any queries please feel free to contact our support team and they’d be happy to help you at any given time.
Was this article helpful?
Still need help?
Submit Your Question
Please give us the details, our support team will get back to you.