Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

SEO & AI search · Guide

How to Add Local Business Schema in WordPress (Plugin and Manual Methods)

How to Add Local Business Schema in WordPress (Plugin and Manual Methods)

Short answer

To add local business schema in WordPress, either fill in your business details in an SEO plugin that supports LocalBusiness markup, or add a JSON-LD script with a code snippets plugin. Include at least your business name and address, plus phone, opening hours, URL and map coordinates. Then test the page with Google's Rich Results Test.

Key takeaways

  • LocalBusiness schema tells search engines your name, address, hours and contact details.
  • Google lists name and address as required properties.
  • Use the most specific business type, such as Dentist or Restaurant.
  • Add markup with an SEO plugin or a JSON-LD snippet, not both.
  • Keep details identical to your Google Business Profile and on-page text.

What is local business schema?

Local business schema is structured data, usually in JSON-LD format, that describes a physical business to search engines, including its name, address, phone number, opening hours, location and type.

It uses the LocalBusiness type from Schema.org and its more specific subtypes. Search engines read it to understand your business details without guessing from page text.

Google's LocalBusiness structured data documentation explains which properties it supports and how they may be used in Search and Maps.

If schema is new to you, our guide on adding schema markup to WordPress covers the basics first.

Does local business schema help SEO?

It helps search engines understand and trust your business details, which supports local visibility, but it does not guarantee rich results or higher rankings on its own.

For map results, your Google Business Profile matters far more. Schema supports it by confirming the same details on your own website.

Structured data also helps AI search tools pull accurate facts, such as your hours and service area, when they summarise local businesses.

Think of it as one piece of consistent business information, alongside your profile, directory listings and on-page contact details.

Which properties should you include?

Google lists name and address as required, and recommends telephone, URL, opening hours, geo coordinates, price range and, where relevant, menu, cuisine and departments.

PropertyWhat it holdsRequired by Google
nameBusiness nameYes
addressFull postal addressYes
telephoneMain phone number with country codeRecommended
urlPage for this locationRecommended
openingHoursSpecificationDays and hoursRecommended
geoLatitude and longitudeRecommended
priceRangeRough price levelRecommended
imagePhotos of the businessRecommended

The full property list lives on the Schema.org LocalBusiness page. Google supports only part of it, so focus on the properties above.

Only mark up details that are also visible on the page. Hidden or different information can make the markup ineligible.

Which business type should you use?

Use the most specific Schema.org subtype that fits, such as Dentist, Plumber, Restaurant or LegalService, instead of the generic LocalBusiness type.

Specific types give search engines more context. A plumber marked up as a generic business tells them less.

If you provide several services, Google's documentation shows that a business can list more than one type in an array.

Browse the subtypes on Schema.org before choosing. Pick the type a customer would use to describe you.

How do you add it with an SEO plugin?

Open your SEO plugin's local SEO or knowledge graph settings, choose a local business, select the business type, fill in address, phone, hours and coordinates, then save and test.

Rank Math has a Local SEO and knowledge graph section. Our guide to Rank Math schema settings explains where these options live.

Yoast offers a Local SEO add-on, and All in One SEO has a local business add-on. Check which plan includes the features you need.

Plugins output the markup on the right pages for you, usually the home page or a contact or location page.

Avoid running two SEO plugins that both output business schema. Duplicate or conflicting markup confuses search engines.

Which pages should carry the markup?

Put the main business markup on the home page or the contact page, and give each location its own page with its own markup when you have several branches.

Do not repeat the same business markup on every blog post. It adds nothing and can look spammy.

How do you add it manually with JSON-LD?

Write a JSON-LD script with your business details, then add it to the head or footer of the relevant page using a code snippets plugin or your theme's functions file.

Here is a simple example for a dental clinic:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Dentist",
  "name": "Example Dental Clinic",
  "url": "https://example.com/",
  "telephone": "+1-555-555-0100",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main Street",
    "addressLocality": "Springfield",
    "postalCode": "12345",
    "addressCountry": "US"
  },
  "openingHoursSpecification": [{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
    "opens": "09:00",
    "closes": "17:00"
  }]
}
</script>

Replace every value with your real details. Keep the phone and address in the same format used on your site.

The JSON-LD website explains the format if you want to understand the syntax in more depth.

Our guide on how to use the WPCode plugin shows how to add a snippet to only one page without editing theme files.

How do you find your geo coordinates?

Open your business in Google Maps, right-click the exact spot and copy the latitude and longitude shown at the top of the menu.

Use at least five decimal places. Google's documentation recommends that level of precision for the geo property.

How do you mark up opening hours correctly?

Use openingHoursSpecification with dayOfWeek, opens and closes in 24-hour time, add separate entries for different days, and use special entries for holidays or closed days.

Google's examples show that a business open all day uses 00:00 to 23:59, and a day closed entirely uses 00:00 for both values.

Seasonal hours can use validFrom and validThrough dates. That is useful for holiday closures.

Update hours in the markup whenever they change. Wrong hours frustrate customers more than missing hours.

How do you handle multiple locations?

Create one page per location, each with its own LocalBusiness markup, address, phone and hours, and link the locations to the main organisation where your plugin supports it.

Do not cram several addresses into one block of markup. Each location is its own business entity.

Location pages should be genuinely useful, with directions, local contact details and photos, not thin copies with the city name swapped.

For businesses with departments, such as a store with a pharmacy, Google supports a department property for parts with different hours or phone numbers.

What about service-area businesses?

Businesses that visit customers, such as cleaners or electricians, can use the areaServed property to describe the towns or regions they cover.

If you do not serve customers at your address, only show the address in markup when it is also shown publicly on your site.

How do you test local business schema?

Run the page through Google's Rich Results Test and the Schema Markup Validator, fix any errors, then request indexing in Search Console and watch its enhancement reports.

The Rich Results Test shows whether Google can read your markup and flags missing required properties.

The Schema Markup Validator on Schema.org checks the general structure, even for properties Google does not use.

Our guide on adding FAQ schema in WordPress uses the same testing steps, so the workflow carries over to other schema types.

What mistakes should you avoid?

The most common mistakes are duplicate markup from several plugins, details that do not match the page or Google Business Profile, wrong business types, and self-written review stars.

Google does not show review stars for reviews a business publishes about itself in LocalBusiness or Organization markup. Do not add fake or self-serving ratings.

Keep your name, address and phone number identical everywhere. Small differences such as old phone numbers create doubt about which details are correct.

Check markup after theme or plugin changes. Updates can remove or duplicate schema without warning.

How does schema fit with Google Business Profile?

Your Google Business Profile drives map and local pack results, while schema on your site confirms the same details; both should match exactly.

Google's guide to improving your local ranking explains that relevance, distance and prominence shape local results.

Link your website from your profile, and show the same address and phone on your contact page.

When details change, update the profile, the site text and the schema on the same day.

How do you keep the markup up to date?

Review your schema whenever hours, phone numbers, addresses or services change, and add a quick check to your routine after theme, plugin or host changes.

Holiday hours are the most common detail to forget. Add them a week ahead and remove them afterwards.

Search Console sends alerts for new structured data errors. Keep those emails turned on so problems reach you quickly.

A once-a-year full audit of your local details, across site, profile and directories, catches the slow drift that hurts trust.

Frequently asked questions

What is LocalBusiness schema?

It is structured data that describes a physical business to search engines, including its name, address, phone, opening hours, location and business type.

Which properties are required for local business schema?

Google lists name and address as required. Telephone, URL, opening hours, geo coordinates and price range are recommended for richer, more useful markup.

Can I add local business schema without a plugin?

Yes. Write a JSON-LD script with your business details and add it to the right page with a code snippets tool or your theme's functions file.

Should every page have local business schema?

No. Put it on the home page or contact page, plus one page per location if you have several branches. Blog posts do not need it.

Does local business schema improve Google Maps rankings?

Not directly. Map rankings depend mostly on your Google Business Profile, relevance, distance and prominence. Schema supports them by confirming consistent details.

Sources

  1. Local business (LocalBusiness) structured data Google Search Central
  2. LocalBusiness Schema.org
  3. JSON-LD json-ld.org
  4. Tips to improve your local ranking on Google Google Business Profile Help

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.