Search engines can read your business’s name, address, phone number and opening hours without guessing, if you hand them the details in a format they were built to read. That format is a short block of text called structured data. You write it once, paste it into one page of your site, and update it only when your details change.
Introduction
Most small-business websites already show the right facts: an address in the footer, hours on the contact page, a phone number in the header. The trouble is that a search engine has to work out which number is the phone number and whether “10–8” means opening hours or a sports score. Structured data removes that guesswork.
Google’s own documentation for local businesses (last updated 8 September 2026) says the extra detail can help it show a business in Search and Maps, for example in a knowledge panel beside the results. It is also blunt about the limits: “Google does not guarantee that your structured data will show up in search results.” So treat this as tidying the facts you control, not a ranking trick.
This tutorial walks you through writing the markup, adding it to a WordPress site and testing it. The steps follow Google’s LocalBusiness guide and schema.org version 30.1 (16 September 2026), as we read them on 15 November 2026.
What it actually means
Structured data is a description of your page written in a shared vocabulary, maintained at schema.org, that the major search engines share. Google accepts three ways of writing it (JSON-LD, Microdata and RDFa) and says that “in general” it recommends JSON-LD. We use JSON-LD too, because it sits in one self-contained block and doesn’t tangle itself through your page’s design.
Step 1: write down your details exactly as your site shows them
Open your contact page and copy the business name, full address, phone number with country code, and opening hours for each day. Google’s general guidelines say “Don’t mark up content that is not visible to readers of the page,” so the markup should repeat what visitors can already see. If your contact page doesn’t show your hours, add them there first.
Step 2: pick the most specific business type
schema.org has a general type called LocalBusiness and many narrower ones beneath it, such as Dentist, Store, LodgingBusiness and FoodEstablishment. Search the schema.org site for your trade and use the closest match. If nothing fits, LocalBusiness on its own is fine.
Step 3: write the JSON-LD
Google requires two properties, name and address. It recommends several more, including telephone (with country and area code), url, openingHoursSpecification, priceRange and geo (latitude and longitude to at least five decimal places). Here is a filled-in template for a dental practice. Replace every value with your own:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Dentist",
"name": "Example Dental Care",
"url": "https://www.example.com/",
"telephone": "+91-141-XXXXXXX",
"priceRange": "₹₹",
"address": {
"@type": "PostalAddress",
"streetAddress": "12 Example Road, C-Scheme",
"addressLocality": "Jaipur",
"addressRegion": "Rajasthan",
"postalCode": "302001",
"addressCountry": "IN"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 26.91240,
"longitude": 75.78730
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
"opens": "10:00",
"closes": "19:00"
},
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Sunday",
"opens": "10:00",
"closes": "13:00"
}
]
}
</script>
Times use the 24-hour clock, as in Google’s own examples. Days with the same hours can share one entry.

Step 4: add it to one page
The block goes in the HTML of a single page, usually the homepage or the contact page. On WordPress you have three common routes: your theme’s setting for adding code to the page head (Divi has one under Theme Options, Integration), a small header-and-footer code plugin, or your developer adding it to the theme. Before you paste, check whether an SEO plugin on your site already outputs business details, because two competing descriptions of the same business help nobody.
Step 5: test it twice
Paste your page address into Google’s Rich Results Test, which checks “your publicly accessible page” and reports which rich results the markup could produce. It also accepts pasted code, so you can test before publishing. Then run the same page through the Schema Markup Validator at validator.schema.org, which checks the markup against schema.org as a whole rather than only what Google uses. Fix anything marked as an error. Warnings about optional properties can wait.
Step 6: keep it in step with the page
When your hours change, update the contact page and the markup together. For a temporary closure, Google’s guide shows how to add a separate entry with validFrom and validThrough dates. Leave those two properties out and the hours are read as valid all year.
A real-world example: a dental practice’s festival closure
Take a composite example drawn from the kind of sites we look after: a two-chair dental practice in Jaipur, open 10 to 7 from Monday to Saturday and mornings only on Sunday. Its address and phone number were in the footer, but the hours only appeared in a photo of the sign on the door. Text inside a photo is easy for a search engine to miss, and a screen reader can’t read it at all unless the image has alt text.
The fix took three parts. First, the hours went onto the contact page as plain text. Second, the markup above went into the page head. Third, before the Diwali break, the practice added one more OpeningHoursSpecification entry with the closed dates in validFrom and validThrough, and the same dates went into a short notice on the contact page. After the festival, both came out again.
Nothing about this changed how the site looked. What changed is that the facts were now written down once, clearly, in a place both people and machines could read.
Why it matters for your site
Customers searching for a local business usually want one of three things: are you open, where are you, and how do I call you. If a search engine has to guess those answers from your page layout, it can guess wrong, and a wrong closing time costs you a visit.
The markup costs nothing but half an hour, and it is easy to undo. It also isn’t a substitute for your Google Business Profile, which is a separate listing you manage with Google directly. We’d keep both, and keep them saying the same thing.
The one real risk is letting the markup drift. Google’s guidelines tell site owners not to “deceive or mislead users” with structured data, and hours that are a year out of date do exactly that, even by accident. Put a reminder next to whatever prompts you to update your opening hours elsewhere.
The quick takeaway
- Write your name, address, phone and hours as JSON-LD, using the most specific schema.org type that fits.
- Only mark up what visitors can already see on the page, and test with both the Rich Results Test and the Schema Markup Validator.
- Change the markup whenever the visible details change, including festival and holiday closures.
Your turn
Open your own contact page now and check: are your opening hours written as text on the page, or only in an image, a PDF or someone’s memory?
Sources and further reading
- Local business (LocalBusiness) structured data, Google Search Central (updated 8 September 2026)
- Introduction to structured data markup in Google Search, Google Search Central
- General structured data guidelines, Google Search Central
- LocalBusiness, schema.org (version 30.1)
- Rich Results Test, Google
- Schema Markup Validator, schema.org
Image credits: Banner photo by Erik Mclean on Pexels. Diagrams and illustrations marked as such were created with AI (Claude) for iZenesis.



