Call Us Toll Free - US & Canada : 888-818-9916 UK : 800-069-8778 AU : 1800-990-217
Add Local Business Schema in WordPress

How to Add Local Business Schema in WordPress (2026 Guide)

Spread the love

You run a shop, a clinic or a trade from a real address. You want people nearby to find you. Local business schema is one of the clearest ways to tell search engines who you are, where you are and when you are open. It is a small block of code that sits behind your page. Visitors never see it, but search engines read it on every crawl. This 2026 guide shows what the markup is, which details it needs, two ways to add it in WordPress, and how to check that it works.

What Local Business Schema Is and What It Does

Schema is a shared set of labels for facts on a web page. It lives at schema.org and the big search engines all read it. One of its types is named LocalBusiness. It is made for any firm that serves people from a fixed place or within a set area. The markup states plain facts in a form a machine can read: your trading name, your street address, your phone number, your hours and your map point.

Why does this help? A search engine can guess these facts from your contact page, but a guess can be wrong. A footer with two phone numbers or an old address can muddle it. Schema removes the guess. It hands over each fact with a clear label. Search engines may then use those facts in local results, in map listings and in the info panel for your brand name. Note the word “may”. The markup makes you eligible for richer results. It does not promise them, and it is not a direct ranking boost by itself. For the wider picture, see our guide on what schema markup is and how to add it to WordPress.

Which Details You Need: Required and Recommended Fields

Google’s guide for this markup lists two required fields. The first is name, which is your business name as customers know it. The second is address, written as a PostalAddress with street, town, region, postcode and country. Leave either one out and the markup will not qualify. Gather the rest of your details before you start, so you can fill them in one pass.

The recommended fields are where most of the value sits. Add as many as apply to you:

  • telephone – your main number, with the country code, such as +1 or +44.
  • url – the full web address of the page for this location.
  • openingHoursSpecification – each day with an open and close time in 24-hour form, such as 09:00 and 17:30.
  • geo – the latitude and longitude of your door, with at least five decimal places.
  • image – a clear photo of your premises, your team or your work.
  • priceRange – a rough guide, such as $$ or a span like $10–$40.
  • sameAs – links to your official social profiles.

One rule sits above all of these. Every fact in the markup must match what a visitor can see on the page. It must also match your Google Business Profile, letter for letter. If the name, address and phone number differ between places, search engines trust all of them less. Our guide on how to integrate your Google business listing with WordPress explains that side.

Pick the Right Business Type Before You Start

LocalBusiness is a broad label. Under it sit well over a hundred more exact types. There is one for a dentist, a bakery, a plumber, a hair salon, a law firm, a gym and many more. Google advises that you use the most exact type that fits. A dental clinic should be marked as Dentist, not as a plain local business. The exact type tells a search engine what you do before it reads a single word of your page.

To find yours, open the LocalBusiness page on schema.org and scroll to the list of more specific types. Pick the closest match and copy its name with the same capital letters. The names are case sensitive, so HairSalon works and Hairsalon does not. Some types unlock extra fields. A Restaurant can list servesCuisine and a link to its menu. If no type fits, stay with LocalBusiness. That is still valid.

Do not pick a type just to look bigger. A sole trader who works from home should not claim to be a store with walk-in hours. If you serve an area but hide your home address in your business profile, think hard before you publish that address in code. In that case, the areaServed field with your towns may suit you better. Note that an address is still required for Google’s local features.

Method 1: Add Local Business Schema With an SEO Plugin

The simplest route is the SEO plugin you most likely have already. Most of them print basic schema on every page with no code from you. Your job is to feed them the right facts. On this blog we use Yoast SEO, so the steps below follow its screens. Other SEO plugins have a matching screen, often named “Local SEO” or “Knowledge Graph”.

Go to Yoast SEO → Settings → Site representation. Choose Organization, not Person. Enter your business name just as it appears on your shopfront. Upload your logo as a square image of at least 696 pixels. Add your social profile links in the fields below. Save the changes. The plugin now prints an Organization block in the code of each page.

There is a limit to know about. The free settings cover your name, logo and profiles. They do not print a full address, your hours or your map point. For that, most SEO plugins sell a paid local add-on with fields for each location. If you run one site with one address, the manual method below does the same job at no cost. If you have five branches, a paid add-on can save hours of work. Either way, use only one source. Two plugins that both print business schema can send mixed signals. If you are still choosing a tool, our guide to WordPress SEO plugins can help.

Method 2: Add the JSON-LD Code by Hand

You can write the markup yourself in about ten minutes. Google prefers a format named JSON-LD. It is a short script that lists each field as a label and a value. It does not change how the page looks. Copy the sample below into a plain text editor and swap in your own details.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Dentist",
  "name": "Example Dental Care",
  "url": "https://www.example.com/",
  "telephone": "+1-555-010-0199",
  "priceRange": "$$",
  "image": "https://www.example.com/clinic.jpg",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "12 Main Street",
    "addressLocality": "Springfield",
    "addressRegion": "IL",
    "postalCode": "62701",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 39.80172,
    "longitude": -89.64371
  },
  "openingHoursSpecification": [{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": ["Monday","Tuesday","Wednesday","Thursday","Friday"],
    "opens": "09:00",
    "closes": "17:30"
  }]
}
</script>

Now add it to WordPress. Open the page for your location, such as the home page or the contact page. Click the plus icon and insert a Custom HTML block. Paste the script into it and click Update. The block shows nothing on the front end, which is correct. You need an Administrator account for this, since WordPress strips scripts for lower roles.

Developers may prefer to print the script in the page head with the wp_head hook. Put that code in a small custom plugin, not in the parent theme, so a theme update cannot wipe it. Take a backup first and test on a staging copy, since a typo in a PHP file can take a site down. Our guide on functions.php versus a custom plugin explains where such code should live.

Where to Place the Markup on Your Site

Placement is the step people most often get wrong. The markup should sit on the page that is about the business at that address. It should not be pasted across the whole site. A blog post about tooth care is not your clinic, so it should not carry your clinic’s full details.

One location. Put the markup on your home page or on your contact page. Choose the page that shows the same name, address and hours in plain text. Use one page only. The url field in the script should point to that same page.

Ad BannerWe fix your Website in less than 30 min

Several locations. Build one page per branch, each with its own address, phone number and hours on show. Give each page its own script with that branch’s facts. Do not list five addresses in one script on the home page. Search engines read each block as one place.

Check for doubles. Before you add your own script, look at what your site prints already. Open your page, right-click and choose View Page Source. Search for application/ld+json. Your theme or a plugin may print an older business block with stale details. If so, turn that feature off or update it. A page with two blocks that disagree is worse than a page with none. A map helps visitors too, so see how to add Google Maps in WordPress for that step.

How to Test and Validate Your Local Business Schema

Never assume the code works. One missing comma breaks the whole block, and a browser will not warn you. Testing takes two minutes and uses free tools. Clear your site cache first, so the tools read the fresh page and not a stored copy.

Step 1: Run the Rich Results Test. Open Google’s Rich Results Test and paste in the address of your page. Wait for the scan to end. Look for a green tick beside “Local businesses”. Click the item to see each field the tool found. Red errors must be fixed. Orange warnings point to recommended fields you left out. They do not block you.

Step 2: Run the Schema Markup Validator. This second tool, at validator.schema.org, checks the code against the full schema rules. It catches misspelt field names and wrong types that the first tool can skip.

Step 3: Watch Search Console. Once Google crawls the page again, reports for your marked-up items can appear in the Enhancements area of Search Console. This can take a few days or a few weeks. Use the URL Inspection tool and click Request Indexing to nudge it along. New to that tool? Read our easy guide to Google Search Console.

If the test finds nothing at all, the script is likely being stripped or cached. View the page source and search for your business name inside a script tag to confirm it is there.

Common Mistakes That Stop Local Schema From Working

Most failed setups come down to a short list of slips. Each one is easy to fix once you know to look for it. Work through these before you decide that the markup has not helped.

Details that do not match. “Suite 4” on the site and “Ste. 4” in the code looks minor. Yet mixed forms weaken trust. Pick one form of your name, address and phone number and use it everywhere.

Marking up things the page does not show. Google’s rules say the markup must reflect what is on the page. Do not list hours, prices or services in code that a visitor cannot find on screen.

Adding your own review stars. A business cannot earn star snippets by marking up reviews of itself on its own site. Google treats those as self-serving and ignores them. Leave aggregateRating out unless a real third-party review system supplies it.

Stale hours. Holiday hours change. Markup that says you are open when your doors are shut annoys people. Set a reminder to review it with each season.

Curly quotes. Code pasted from a word processor can swap straight quotes for curly ones. JSON only accepts straight quotes, so the block fails. Always edit in a plain text editor.

If you would like a hand with the setup, or a check of markup you have in place, the team at 24×7 WP Support works on WordPress SEO and schema every day. Get in touch and we can take a look at your site.

WP Girl 30 min