Skip to main content
Get started
Back to Blog

Schema & Structured Data

LocalBusiness Schema for WordPress: 7 Plugins

By Jenny BeasleyUpdated October 21, 20269 min read

Quick answer

LocalBusiness schema states a business's type, address, phone number, opening hours and service area as JSON-LD, so Google and AI assistants such as ChatGPT can confirm those facts instead of inferring them. On WordPress it usually comes from an SEO plugin's local module: Rank Math, Yoast Local SEO, AIOSEO or SEOPress. One plugin older guides still recommend, WP SEO Structured Data Schema, is now closed on WordPress.org.

LocalBusiness schema for WordPress: a lime map pin planted on a small shop on a town map, read by an AI bot

Ask ChatGPT for "an emergency plumber in Seattle open on Sundays" and it has to establish three facts about every candidate: what the business does, where it is, and when it is open. LocalBusiness schema states all three in one block of JSON-LD that sits in the page's code, so a crawler does not have to piece them together from a footer and a contact page.

We build LovedByAI, an AI search optimization platform for small businesses. It does the on-page work that helps ChatGPT, Google's AI Overviews and Perplexity read, cite and recommend a business's website, then reports the AI mentions and AI referral visits that follow. We checked each plugin below against its WordPress.org listing or documentation on 21 October 2026, and dropped two that older guides, including an earlier version of this one, still recommend: WP SEO Structured Data Schema, which WordPress.org has closed over a security issue, and SNIP, which has not been tested against the last three major WordPress releases.

What is LocalBusiness schema, and does AI search use it?

LocalBusiness is the Schema.org type for a business with a physical location or a defined service area. It carries the business type (Dentist, LegalService, Plumber, Restaurant and dozens more), the name, the address, the phone number, opening hours, map coordinates and the area served. On a WordPress site it is usually written as JSON-LD in the page head.

Google uses it to confirm business details, and AI assistants read it alongside the visible page when they fetch a page to answer a question. It works best as confirmation: the same facts on the page, in the schema and on the Google Business Profile.

7 WordPress plugins for LocalBusiness schema, compared

PluginLocalBusiness subtypesOpening hoursMultiple locationsCost
Rank MathYes, in Local SEO settingsYesRank Math ProFree, Pro for locations
Yoast Local SEOYesYesYesPaid add-on to Yoast SEO
AIOSEOYes, Local SEO add-onYesYesPaid plans
SEOPress PROYesYesYes, multiple storesPaid (PRO)
Schema & Structured Data for WP & AMPYes, all subtypesCheck settings per typeVia separate schema entriesFree, premium add-ons
Five Star Business Profile and SchemaYesYesYesFree
Schema ProYesYesVia separate schema entriesPaid only

1. Rank Math: LocalBusiness schema inside the SEO plugin you may already run

Rank Math's Local SEO settings set the business type, address, phone, opening hours and geo coordinates for the site, and its Local Business block can show the same details on a page. Multiple locations, each with its own schema and a store locator, need Rank Math Pro. If Rank Math is already your SEO plugin, start here rather than adding a second plugin.

2. Yoast Local SEO: the local add-on for Yoast SEO sites

Yoast Local SEO is a paid add-on to Yoast SEO. It adds the business type, address, opening hours and multiple locations to Yoast's single schema graph, and blocks for showing addresses, maps and opening hours on pages. It is the natural pick for sites already on Yoast, because it extends the existing graph instead of adding a second one.

3. AIOSEO: guided LocalBusiness setup for non-technical owners

AIOSEO's Local SEO add-on, part of its paid plans, handles single and multiple locations, opening hours and maps. Its setup wizard suits owners who want to answer questions rather than fill in schema fields.

4. SEOPress PRO: LocalBusiness with opening hours and multiple stores

SEOPress lists Local Business schema with opening hours and multiple stores as a PRO feature. The free plugin covers general SEO and, in 2026, llms.txt. It was the top answer in an r/Wordpress thread from site owners asking for a lightweight, no-code way to add business schema.

5. Schema & Structured Data for WP & AMP: free, with every LocalBusiness subtype

This free plugin by Magazine3, on more than 100,000 sites, supports LocalBusiness with all its subcategories plus dozens of other types, and works on AMP pages. It is the fullest free option, at the cost of more settings to learn. If you also run an SEO plugin, switch off that plugin's overlapping schema types.

6. Five Star Business Profile and Schema: a contact card that writes its own schema

Five Star Business Profile adds a contact card to a page (address, phone, opening hours, map) and outputs the same details as LocalBusiness JSON-LD, with support for multiple locations. It suits small sites whose contact page is the main source of truth, because the visible card and the schema cannot drift apart.

7. Schema Pro: paid schema plugin for agencies

Schema Pro is a paid plugin (not on WordPress.org) that maps schema types, LocalBusiness included, to posts, pages or custom post types by rule, which suits agencies setting up many client sites the same way.

Where LovedByAI fits with a LocalBusiness schema plugin

LovedByAI is not a LocalBusiness plugin, and it is designed to run next to one. It adds Organization and FAQPage JSON-LD and merges it into the schema your SEO plugin already outputs, so the business ends up described once. It fills in identity details the plugin may be missing (telephone, address and social profiles found on your own pages), writes a visible FAQ section for each page with matching FAQPage markup, and rewrites headings as the questions customers ask. Keep Rank Math, Yoast Local SEO, AIOSEO or SEOPress for the LocalBusiness subtype, opening hours and locations.

How to add LocalBusiness schema to WordPress without a plugin

If you would rather not add a plugin, print the JSON-LD from a child theme or a code snippets plugin through the wp_head hook, on the homepage and the contact page only. This is the shape of a complete single-location block:

{
  "@context": "https://schema.org",
  "@type": "Plumber",
  "@id": "https://www.example-plumbing.com/#business",
  "name": "Example Plumbing",
  "url": "https://www.example-plumbing.com/",
  "telephone": "+1-206-555-0142",
  "priceRange": "$$",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 Main St",
    "addressLocality": "Seattle",
    "addressRegion": "WA",
    "postalCode": "98101",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 47.6062,
    "longitude": -122.3321
  },
  "openingHoursSpecification": [
    {
      "@type": "OpeningHoursSpecification",
      "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
      "opens": "08:00",
      "closes": "18:00"
    }
  ],
  "areaServed": { "@type": "City", "name": "Seattle" },
  "sameAs": ["https://www.facebook.com/exampleplumbing"]
}

Before you add it, check that no plugin already outputs a LocalBusiness block, or you will have two. Our guide to adding JSON-LD to WordPress has the PHP function and the filters for extending Yoast SEO's or Rank Math's graph instead of adding beside it.

Which LocalBusiness schema fields matter most?

  • The most specific @type that fits (Plumber, Dentist, LegalService), not plain LocalBusiness.
  • Name, address and telephone exactly as they appear on your Google Business Profile.
  • openingHoursSpecification, kept current, including holiday changes.
  • geo coordinates and areaServed, which matter for "near me" and service-area questions.
  • sameAs links to your official profiles, so the business can be matched across sites.
  • priceRange, if you can state it honestly.

How to check that your LocalBusiness schema is working

  1. Run the homepage and contact page through Google's Rich Results Test and the Schema Markup Validator. Confirm exactly one LocalBusiness block per location, with no errors.
  2. Compare the name, address, phone and hours in the schema with the page and your Google Business Profile, character for character.
  3. Clear your cache. Caching and minification plugins sometimes strip or break script tags.
  4. Ask ChatGPT or Perplexity a question a customer would ask, such as an emergency plumber in your city, and check whether the details it gives about your business are right. A wrong address or old hours usually points to a page or profile that disagrees with the rest.

The free GEO checker also checks your structured data and whether AI crawlers can reach the page. Businesses in regulated fields have extra detail to get right; our guide to GEO for law firms covers LegalService and attorney markup.

Jenny Beasley

Jenny Beasley is Head of AI Search Optimization at LovedByAI. She spent seven years at IBM, the last three as Director of SEO, then nearly three years consulting on SEO and LLM readiness for B2B tech companies. She developed the GEO framework behind the plugin, which earned optimized pages 11 times the AI referral visits of untouched pages across a 116-site study.

FAQ: LocalBusiness Schema for WordPress, 7 Plugins

How do you add local business schema in WordPress?

Use your SEO plugin's local module: Rank Math's Local SEO settings, Yoast Local SEO, AIOSEO's Local SEO add-on or SEOPress PRO. Fill in the business type, name, address, phone, opening hours and service area, and the plugin writes the JSON-LD. Without a plugin, print the JSON-LD from a child theme through the wp_head hook. Either way, test the page in Google's Rich Results Test.

What is local business schema?

Local business schema is structured data using the Schema.org LocalBusiness type, usually written as JSON-LD, that states a physical or service-area business's name, type, address, phone number, opening hours, location and service area in a form machines can read without guessing.

Does AI use schema markup?

AI assistants read structured data along with the visible page when they fetch it to answer a question, and schema removes guesswork about facts such as an address or opening hours. It is not a ranking switch: schema that contradicts the page or the Google Business Profile helps nobody, and a page still needs to answer the customer's question in plain text.

Should LocalBusiness schema go on every page?

LocalBusiness schema belongs on the homepage and on each location or contact page, one block per physical location. Other pages can reference the business by its @id rather than repeating the full block, which keeps one source of truth for the address and hours.

Can I use multiple schema plugins at the same time?

Running two schema plugins usually produces two descriptions of the same business, sometimes with different names, addresses or hours. Pick one source for LocalBusiness and switch the type off in the other plugin, then check the page in the Rich Results Test to confirm only one LocalBusiness block remains.

Does LocalBusiness schema guarantee AI recommendations?

LocalBusiness schema does not guarantee AI recommendations. It makes the business facts unambiguous; whether ChatGPT or Gemini recommends the business still depends on how well its pages answer the question, its reviews, and whether other sources agree with it.

What is the difference between schema and structured data?

Structured data is any machine-readable description of a page; Schema.org is the shared vocabulary most of it uses, and JSON-LD is the format Google recommends for writing it. LocalBusiness is one type in the Schema.org vocabulary.

How long does it take for AI to read new schema?

Google usually processes schema changes within days of recrawling a page. AI assistants recrawl on their own schedules, and LovedByAI customers typically see their first AI mentions 6 to 8 weeks after their pages are optimized.

Ready to optimize your site for AI search?

Discover how AI engines see your website and get actionable recommendations to improve your visibility.

see how AI reads your site

Scan my site free