Short answer
Build location pages from data: one location post type, one ACF field group saved as Local JSON, one single template and LocalBusiness markup generated from the same fields. Publish a location only when it stands for a real place or service area and has unique local content, because Google treats near-identical city pages as doorway abuse.
In this article
Key points
- Google's spam policies name city-targeted pages that funnel users to one page, and substantially similar pages, as doorway abuse.
- Create a location page only for a real presence or a service area you truly serve, and give each page unique local content.
- Use one location post type, one ACF field group in Local JSON, and one single-location template so every fact has one home.
- Generate LocalBusiness markup from the same fields as the visible text, because markup for content readers cannot see breaks Google's guidelines.
- Add checks: a swap test, required fields, a real-world check, a duplicate check and a link check.
A business with several branches, or a service firm that covers several towns, usually wants a page for each place. Done well, a location page helps a person who is searching for a place near them, and it gives them what they need: address, hours, phone number, services and a map. Done badly, it becomes a set of near-identical pages with a different city name in each one.
Google has a name for the bad version, and it is in the spam policies. So I build location pages as data first and design second. This post covers the model I use in WordPress with Advanced Custom Fields (ACF): the post type, the fields, the single template, the markup and the checks that stop a thin page from going live.
First, decide if you need a location page at all
Google’s spam policies define doorway abuse as sites or pages created to rank for specific, similar search queries that lead users to intermediate pages that are less useful than the final destination. One of the examples is having multiple pages targeted at specific regions or cities that funnel users to one page. Another is creating substantially similar pages that are closer to search results than to a clearly defined, browseable hierarchy.
The same policy page defines scaled content abuse as many pages generated mainly to manipulate rankings and not to help users, and it says this applies no matter how the pages are created. So a template that fills in a city name is not a problem in itself. A template that produces hundreds of pages with nothing of value in them is.
My rule is that a location page must stand for something real. There are two honest cases:
- A place where you have a presence. A shop, an office, a clinic or a branch where customers can go, or where staff work for that area.
- An area you truly serve, with specific information about how you serve it, such as service times, local rules, the people who do the work, or local conditions that change the service.
If neither is true, I do not make the page. Google’s Business Profile rules point the same way. Its guidelines for representing your business ask for an accurate, precise address or service area, say that P.O. boxes and remote mailboxes are not acceptable, and say that an office in a shared workspace is only acceptable when it has clear signage, receives customers during business hours and is staffed by your business. A location page that claims a place you do not have creates trouble in more than one place.
If you cannot say what is real about a place, you are not ready to give it a page.
Own-ur-Rehman Sheikh
The data model: one post type, one field group
In WordPress, I register one custom post type called location, using register_post_type, described in the WordPress developer reference. Each location is one post. The title is the place name, the slug is the URL, and the content lives in ACF fields.
The fields are defined once in a field group, and the group is saved as Local JSON in the theme. ACF’s Local JSON documentation explains that when you create an acf-json folder in your theme, ACF saves each field group to a JSON file in that folder, and that the files can be committed and synced between developers and sites with version control.
These are the fields I use.
| Field group | Fields | Why it exists |
|---|---|---|
| Identity | Location name, short description, main photo with alt text | Names the place and gives the page its heading |
| Address | Street, city, region, postal code, country, latitude, longitude | Feeds the visible address, the map and the markup from one source |
| Contact | Phone, email, booking link, Business Profile link | Gives people a way to act |
| Hours | Repeater with days, opening and closing times, special closures | Shows hours and builds the markup |
| Services | Relationship field to service posts available here | Links to deeper pages and shows what this place offers |
| Local content | Unique intro, how to find us, parking or access notes, areas served | The part that makes this page different from the next one |
| People | Relationship field to team members at this location | Shows who people will meet |
| Questions | Repeater of question and answer pairs for this place | Answers local questions |
| Status | Checked by, last checked date | An internal note so someone owns the accuracy |
The point of the model is that every fact has one home. The phone number is typed once. The page, the contact box, the map link and the markup all read from that field. When the number changes, you change it once.
The template: one for the whole type
The WordPress template hierarchy lets a post type have its own single template, named single-location.php. That is the one template for every location. I follow the same rule I wrote about in one template per page with ACF: a family of posts shares a template, and the template contains no content. All words come from fields.
What I put in the template, in order:
- Heading and short description that name the place.
- Contact block with address, phone and hours, as real text, not as an image.
- Map link or embed. A link is lighter. I only embed a map if it is worth the weight.
- Services here, listed from the relationship field, with links.
- Local content, including the unique intro and how to find the place.
- People and photos from this location.
- Local questions, as an accordion.
- Nearby locations, as links to other location pages.
Every output is escaped when it is printed, and links are built from the fields with the right escaping function. I do not print raw field values into the page.
Markup from the same fields
For structured data I generate LocalBusiness in JSON-LD from the same fields the page prints. Google’s local business structured data page lists address and name as the required properties and recommends adding more, including opening hours, geo coordinates, telephone and URL. The general structured data guidelines add a rule that decides the design: do not mark up content that is not visible to readers of the page. If the markup says the shop opens at nine, the page must say so too.
Because the page and the markup read from one field, they cannot disagree. That is a better guarantee than a person copying values into two places. My Rank Math setup handles the sitemap and the basics, as I describe in my Rank Math setup for new WordPress sites, while the location markup comes from the theme. I make sure there is only one source of each type of markup on a page.
URLs and the locations hub
I keep the URL structure plain: a locations hub at /locations/ and each place under it, such as /locations/town-name/. The slug is the place name and nothing else. I do not add service keywords to the slug, because the services are already linked from the page.
The hub page is a real page, not a list of links. It explains where the business operates, shows a simple list or map of the locations, and sends people to the closest one. A hub gives visitors a clear way to choose and gives crawlers a short path to every location. It also gives a place for the cases that do not need their own page, such as a town you serve from a nearby branch. You can name that town on the branch page, in the areas served field, with a sentence that explains how the service works there.
Each location page has its own title, its own description and a self-referencing canonical tag, so that no page points to another by mistake. If a location moves to a new URL, the old address gets a permanent redirect to the new one.
Quality checks before a location goes live
A model that makes pages easy to create also makes thin pages easy to create. So I add checks, and I add them to the process, not just to my memory.
The swap test
Take the page text and swap the place name with another town in your list. If the page still reads exactly the same, the page has nothing local in it. It needs real content: how to reach the place, who works there, what is different about the service there.
The required fields rule
A location cannot be published unless the address, phone, hours, a unique intro and at least one service are filled in. ACF lets you mark fields as required, which stops a half-empty page being saved as published. I keep unfinished locations as drafts.
The real-world check
Someone who knows the place confirms the address, the hours and the way in. For businesses with a Google Business Profile, the profile and the page must match, with the same name, address and phone number.
The duplicate check
I compare the unique intro of each new page with the others. If two intros share most of their words, one of them needs rewriting.
The link check
Each location needs a link from a locations hub page, a link from its own services, and links to nearby locations. A page that nothing links to is hard to find for visitors and crawlers alike. Rank Ray’s guide to multi-location SEO, schema and Google Business Profile covers the wider setup.
Keeping it true over time
Location data goes out of date: hours change, a phone line moves, a branch closes. I give every location a “last checked” date and a named person. Once a quarter we read each page against reality. If a branch closes, the page is not simply deleted. We decide whether to redirect it to the nearest branch or to a page that explains the closure, so that visitors do not hit an error.
I also keep the number of locations honest. A business with six branches gets six pages. A business that serves a region with one team and one office gets one strong page about the area it serves, not forty near-copies. Adding pages is easy, and removing them later is slow and awkward.
To sum it up: one post type, one field group in Local JSON, one template, one source for every fact, and a set of checks that stop a thin page from reaching the live site. The result is a set of pages that a person can use and that the site owner can edit without a developer, which was the point from the start.
FAQ
Are location pages doorway pages?
Not by themselves. Google defines doorway abuse as pages made to rank for similar queries that funnel users to a less useful destination. A page that serves a real place with unique, useful information is not that.
Can I use one template for hundreds of locations?
Yes. The template is only the layout. The risk is not the template but pages with little or no unique, useful content.
What does Google require for LocalBusiness markup?
Google's documentation lists address and name as the required properties and recommends more, such as opening hours, geo coordinates, telephone and URL.
Should I make a page for every town I serve?
Only where you can say something real and specific about serving that area. Otherwise one strong page about the whole service area is safer and easier to keep accurate.
Where do ACF field settings live?
With Local JSON, ACF saves field groups as files in an acf-json folder in your theme, so they can be kept in version control and synced between sites.
Sources
- Google Search Central: Spam policies for Google web search
- Google Search Central: Local business structured data
- Google Search Central: General structured data guidelines
- Google Business Profile Help: Guidelines for representing your business on Google
- Advanced Custom Fields: Local JSON
- WordPress Developer Resources: register_post_type




