GuideBlog Posts

How to Add Local Business Schema in WordPress Without Code

Set up valid LocalBusiness JSON-LD with the AIOSEO Local Business add-on, no custom code required.

How to Add Local Business Schema in WordPress Without Code
Photo: Amina Filkins / Pexels
TL;DR

You add local business schema in WordPress by installing the AIOSEO Local Business add-on and filling in name, address, phone, hours, locations, and service area. The plugin outputs Schema.org LocalBusiness JSON-LD, so you never hand-edit code. Validate with Google's Rich Results Test before relying on it.

Key takeaways

  • LocalBusiness schema marks up your NAP, hours, geo coordinates, and service area for search engines.
  • AIOSEO Local Business generates JSON-LD from admin fields and supports multiple locations.
  • Test with Google Rich Results Test or Schema Markup Validator after any change.
  • If rich results break, check for duplicate theme schema, invalid hours, or caching conflicts.

Outcome and Time Investment

You get valid Schema.org LocalBusiness JSON-LD on your WordPress site without touching code. The AIOSEO Local Business add-on generates the markup from fields you fill in. Budget 30–45 minutes for setup and validation.

Before you start, have your business legal name, physical address, phone number, opening hours, and service area ready. You also need a WordPress site where you can install plugins, and a page for your main location or service area.

Street view of Joe's Pizza on a sunny day in Brooklyn, showcasing the lively urban atmosphere.
Photo: Douglas Schneiders / Pexels

Prerequisites Before You Add Local Business Schema

You need four things before you add local business schema: a working WordPress site, an active All in One SEO Pack Pro license, your business NAP and hours, and Google Search Console access.

  • WordPress site where you can install plugins, ideally on the domain that matches your real-world location.
  • All in One SEO Pack Pro license, because the AIOSEO Local Business add-on requires the Pro parent plugin.
  • Exact business details: legal name, street address, city, state, ZIP, phone, opening hours, and service area.
  • Google Search Console account or access, so you can watch for schema validation errors after setup.
AIOSEO – Local Business

Plugins

AIOSEO – Local Business

AIOSEO Local Business is the add-on that outputs Schema.org LocalBusiness markup without code. WorldPressIT sells the original file for $4.99.

v1.3.16 · Updated September 8, 2026Get it for $4.99
WorldPressIT All-Access

Every plugin and theme in this article, plus 10,000+ premium WordPress plugins and themes, in one membership.

From $14.99/month, or one lifetime payment. Cancel anytime.

See membership plans

Install and Activate AIOSEO Local Business

You install AIOSEO Local Business like any other premium plugin: download the ZIP from your account, upload it through WordPress, activate it, and confirm your Pro license. Setup takes about five minutes before you touch the schema fields.

  1. Download the add-on Grab AIOSEO Local Business from your downloads area. Keep the AIOSEO Pro license key from your account open in another tab.
  2. Upload the ZIP In WordPress, go to Plugins → Add New Plugin, click Upload Plugin, choose the ZIP file, and click Install Now.
  3. Activate and verify license Click Activate Plugin, then go to All in One SEO → General Settings and make sure your Pro license key is saved and active.
  4. Check the Local SEO menu After license activation, a Local SEO menu should appear under All in One SEO. If it doesn't, deactivate the add-on and reactivate it.

Once the menu is visible, you're ready to add locations. If you later need schema types beyond LocalBusiness, Adding schema markup with Schema Pro covers a different workflow.

Add Your Business Locations and Core Details

Add locations from All in One SEO > Local SEO > Locations. The editor asks for business name, business type, street address, phone, and optional latitude/longitude. Enter those before opening hours or service area, because the map and schema type depend on them.

  1. Open the Locations editor Go to All in One SEO > Local SEO > Locations and click Add New Location.
  2. Enter the business name Type the Business Name exactly as it appears on Google Business Profile and in your site footer.
  3. Choose the most specific business type Pick a Business Type from the dropdown—like Restaurant, Dentist, or Auto Repair—not the generic LocalBusiness.
  4. Fill in the address and coordinates Add the street address, city, state, ZIP, and country. If the map doesn't auto-place the pin, enter Latitude and Longitude manually.
  5. Attach the location to a page Add the Phone number, then use the Page/Post dropdown (or similar location setting) to bind this location to a real page on your site. Save the location.

Set Opening Hours and Service Area for the Schema

Set opening hours and service area in the same AIOSEO Local Business location editor where you entered NAP. The plugin converts these fields into Schema.org openingHoursSpecification and areaServed JSON-LD, so Google sees structured data without you touching code.

  1. Open the location editor Go to Local SEO > Locations and edit the business location you added earlier. The Opening Hours and Service Area fields sit below the core NAP fields.
  2. Enter opening hours per day For each day from Monday through Sunday, pick the opening and closing times. Leave a day blank or use the “Closed” toggle if the business is not open. If the business runs 24 hours on a given day, enable the 24-hour option instead of entering times.
  3. Define the service area In the Service Area section, choose whether you serve customers at a physical storefront or within a radius. For a storefront, select the address-only option. For a service-area business, set the radius or add specific cities and regions you serve.
  4. Save the location Click Save or Update. AIOSEO now outputs LocalBusiness JSON-LD with openingHoursSpecification and areaServed on the page you assigned earlier.

Place the Schema on the Right Pages

Attach each location to the page that best represents that business. For a single-location site, pick the contact page or homepage; for multi-location sites, create one page per location and assign each one.

  1. Open the location in AIOSEO In WordPress admin, go to Local SEO > Locations and click the location you need to place.
  2. Set the target page Use the Page drop-down to choose the exact page where that business's LocalBusiness schema should appear. Single locations can use the homepage or contact page.
  3. Save and confirm Click Save Changes. AIOSEO injects the Schema.org LocalBusiness JSON-LD into the head of that assigned page only.

For multi-location businesses, repeat the process for each location. Do not assign two locations to the same page; Google may pick the wrong one or ignore both. If your theme already adds schema and cleaning it up becomes a mess, the WP Schema Pro method gives you full control over what gets printed.

Test and Fix Common Validation Errors

Test the assigned page with Google's Rich Results Test and the Schema Markup Validator. The Rich Results Test flags what Google can use for a local result; the Schema Markup Validator shows the raw LocalBusiness JSON-LD even if Google does not display a rich result.

  1. Run the Rich Results Test Enter the page URL where you assigned the AIOSEO location and click Test URL. Wait for the Local Business result, then check for red errors under address, phone, geo, or opening hours.
  2. Inspect raw JSON-LD Open the Schema Markup Validator and fetch the same URL. Find the LocalBusiness type and confirm address, openingHoursSpecification, and areaServed are present and populated.
  3. Re-test after every fix Change a field in AIOSEO, save it, purge cache, and run both validators again. Do not rely on the WordPress preview; the validator must fetch the live URL.

When to Use Schema Pro Instead

Stick with AIOSEO Local Business if your only goal is LocalBusiness schema on a few pages. The add-on fills in the required name, address, phone, hours, and service area fields so you never touch JSON-LD by hand.

Move to WP Schema Pro when you need custom schema types outside LocalBusiness—products, reviews, events, courses, or other structured data that the Local Business add-on does not output. Adding schema markup with Schema Pro shows how to map those types to specific posts and pages.

WP Schema Pro Plugin

Plugins

WP Schema Pro Plugin

A general-purpose schema plugin for defining custom structured data and assigning it to posts, pages, or custom post types. Use it when you need schema control beyond what AIOSEO Local Business provides.

v2.12.3 · Updated October 2, 2026Get it for $4.99

Frequently asked questions

Do I need All in One SEO Pack Pro to use AIOSEO Local Business?

Yes, AIOSEO Local Business is an add-on for All in One SEO Pack Pro. Install and activate the Pro parent plugin first, then install the Local Business add-on. Without the Pro license, the Local SEO menu won't appear.

Can I mark up multiple business locations with AIOSEO Local Business?

Yes. Add one location record per physical address under Local SEO > Locations and assign each to its own page. Do not list two addresses in one record or Google may treat the NAP as inconsistent.

Will adding local business schema guarantee a Google map pack listing?

No. Schema gives Google structured data about your business, but relevance, reviews, and proximity still determine ranking. You may see more accurate rich results, but a map pack listing isn't guaranteed.

How do I test that my LocalBusiness schema is valid?

Run the assigned page URL through Google's Rich Results Test and the Schema Markup Validator. The Rich Results Test flags Google-usable local results; the Schema Markup Validator shows raw LocalBusiness JSON-LD. Re-test after any change to NAP, hours, or location assignment.

What is the difference between LocalBusiness and Organization schema?

LocalBusiness describes a specific physical location with NAP, geo coordinates, hours, and service area. Organization describes the company behind the site and is not tied to one address. If your site represents one local business, LocalBusiness is usually the more specific type to use.

Does local business schema work for service-area businesses without a storefront?

Yes. In AIOSEO Local Business, choose the service-area option instead of the storefront option. Set a radius or add the cities and regions you serve. Google accepts LocalBusiness schema for service-area businesses when you mark areaServed.

Share X LinkedIn Facebook
Patrick Humanitas
Written by

Patrick Humanitas

WordPress performance and hosting consultant. Patrick has spent twelve years speeding up, securing and untangling sites for agencies, and writes about caching, security, maintenance and the plugins that actually earn their keep.

Products in this article

Browse all