Yoast Local Business Schema: Setting Up LocalBusiness Markup in WordPress, Multiple Locations and Testing
At a glance
- Google's LocalBusiness schema needs two things: the business name and address.
- The Yoast Local SEO plugin builds the schema for one or many locations automatically.
- After publishing, test with the Rich Results Test and the Schema Markup Validator.
When someone searches your shop's name on Google and sees your address, phone number and opening hours beside it, their trust grows. Google collects this information from several places, and one of them is your website's structured data, or schema. On a WordPress site, Yoast local business schema — the LocalBusiness schema produced by the Yoast Local SEO plugin — makes the job easier. This guide shows step by step what information the schema needs, how to set it up in Yoast, what to do with several branches, how to write it yourself without the plugin and how to test it. The rules were checked against Google's and Yoast's documentation as of November 2026.
What LocalBusiness schema is and why you need it
Schema is special code placed inside a web page (usually in JSON-LD format) that readers don't see but search engines read. Schema.org's LocalBusiness type says: "This is a real business, its name is this, its address is this, and it is open at these times."
Why you need it:
- Accurate information: Google gets confirmed details directly from your site.
- Eligibility for extra details in search: according to Google's documentation, LocalBusiness structured data can help show details such as opening hours and departments in search.
- Consistency with your Google Business Profile: the same name, address and phone on your profile and website build consistent information.
Remember, the main route into Google Maps and the local pack is your Google Business Profile. Schema complements it; it doesn't replace it.
What information LocalBusiness schema needs
Google's guidelines split the details into two groups:
| Type | Property | Example |
|---|---|---|
| Required | name | Rahim Mobile Service |
| Required | address (PostalAddress) | Street, area, city, postcode, country |
| Recommended | telephone | Number with the country code |
| Recommended | url | Link to the business or branch page |
| Recommended | geo | Latitude and longitude, at least 5 decimal places |
| Recommended | openingHoursSpecification | Which days and hours you're open |
| Recommended | priceRange | A rough idea of prices |
| Recommended | department | Separate departments inside the business |
It's better to pick a more specific type for your business, such as Restaurant, Store, Dentist or AutoRepair. Schema.org has many such sub-types under LocalBusiness.

Yoast local business schema setup: step by step
Free Yoast SEO presents your site as an Organization or Person in its schema, but LocalBusiness schema with your address and opening hours needs the separate paid add-on Yoast Local SEO. Prices and licence terms change over time, so check the latest details on yoast.com before buying.
- Keep Yoast SEO active. The Local SEO add-on works on top of the main Yoast SEO plugin.
- Install and activate Yoast Local SEO and connect your licence.
- Enter your business details. In the Local SEO settings, enter the business type (for example Store or Restaurant), name, full address, phone, email and website. Match the name and address exactly to your Google Business Profile.
- Set opening hours. Enter opening and closing times for each day. Mark Friday or any other closed day.
- Add the map and coordinates. Enter latitude and longitude for the address; the plugin's map features may need a Google Maps API key.
- Show the address and hours on your contact page. Use Yoast Local SEO's blocks or widgets so readers can see the same details. Google wants schema details to match what is visible on the page.
- Save and test (see the testing section below).
According to Yoast's developer documentation, the plugin connects the LocalBusiness details to Yoast's own schema "graph", so they are output linked with your website, organisation and page details.
If you have multiple locations
Two showrooms in Dhaka and Chattogram, or five clinics in five areas of a city? Then:
- Turn on the multiple locations option in the Local SEO settings. The plugin then creates a separate post type called "Locations".
- Create a location post for each branch with its own address, phone, opening hours and coordinates. Each location page gets its own LocalBusiness schema.
- Use shared business info. Details that are the same for all branches (such as business type, logo or general hours) can be entered once and applied to every location; change only what differs for a branch.
- Give each branch page real content. Don't copy the same text with only the address changed; add directions, nearby landmarks, services and photos for each branch.
- Keep a separate Google Business Profile for each branch and link each profile to that branch's page.
Writing LocalBusiness schema yourself without a plugin
If you don't want the paid plugin, you can write JSON-LD code yourself and place it in your contact page's header (with a code snippet plugin or your theme's header setting). There are also many free local business schema generators online. A simple example:
{ "@context": "https://schema.org", "@type": "Store", "name": "Rahim Mobile Service", "url": "https://example.com/contact", "telephone": "+8801XXXXXXXXX", "address": { "@type": "PostalAddress", "streetAddress": "House 10, Road 2, Mirpur 10", "addressLocality": "Dhaka", "postalCode": "1216", "addressCountry": "BD" }, "openingHoursSpecification": [{ "@type": "OpeningHoursSpecification", "dayOfWeek": ["Saturday","Sunday","Monday","Tuesday","Wednesday","Thursday"], "opens": "10:00", "closes": "21:00" }] }The code goes inside a <script type="application/ld+json"> tag. Replace it with your real details, and take coordinates from Google Maps if you want to add geo. Make sure the name or logo doesn't conflict with Yoast's Organization schema.
Testing and common mistakes
After publishing, check with two free tools:
- Rich Results Test (Google): enter the page URL; it shows whether Google can read the schema and whether there are errors.
- Schema Markup Validator (validator.schema.org): shows the full schema structure and properties.
Then keep an eye on Google Search Console. The most common mistakes:
- Mismatched name, address and phone: different spellings on the site, the schema and the Google Business Profile.
- Expecting stars from your own reviews: Google doesn't show review stars for self-serving reviews on LocalBusiness.
- Details that aren't visible: opening hours or prices in the schema that aren't on the page.
- Outdated hours: when hours change for Eid or other holidays, update both the site and the profile.
- Wrong country code: for Bangladesh, addressCountry is BD.
Final word
Yoast local business schema isn't magic; it's a way to tell Google your business's correct identity clearly. Start with the name and address, add opening hours and coordinates, give each branch its own page if you have several, and test after every change. Kept consistent with your Google Business Profile, it gives your local SEO a solid foundation.
FAQ
Does free Yoast SEO output LocalBusiness schema?
Free Yoast SEO presents your site as an Organization or a Person in its schema. Full LocalBusiness schema with your address, opening hours and branch details needs Yoast's separate paid add-on, Yoast Local SEO. If you don't want to buy it, you can add JSON-LD code yourself.
Will LocalBusiness schema improve my Google Maps ranking?
There's no direct guarantee. For Google Maps and the local pack, your Google Business Profile matters most. Schema helps Google understand your website's details accurately and makes the information eligible to show in search. Keep both exactly the same.
With several branches, should I put every branch's schema on one page?
The better approach is a separate page for each branch, with only that branch's LocalBusiness schema on it. When you turn on multiple locations in Yoast Local SEO, each branch becomes a separate location post with its own schema.
Will my own reviews in schema show star ratings?
Usually not. For LocalBusiness and Organization, Google does not show review stars for self-serving reviews, meaning reviews a business shows about itself on its own site. Fake reviews or ratings can even risk a manual action.
How do I know my schema is correct?
Test the page URL in Google's Rich Results Test and view the full schema structure in the Schema Markup Validator. Later, fix any errors or warnings that appear in the enhancement reports in Google Search Console.
Sources
- Google Search Central: Local business (LocalBusiness) structured data
- Yoast Developer: Yoast Local SEO for WordPress schema output
- Yoast Developer: LocalBusiness schema piece
- Yoast Help: Shared business info in Local SEO
- Yoast: Local business listings with schema structured data
- Schema.org: LocalBusiness
- Schema.org: OpeningHoursSpecification
Comments
No comments yet — be the first to comment.