Building 500 location pages in WordPress is the easy part. A custom post type, a CSV and an import plugin, and you can have them live by Friday. The hard part is making sure Google still wants to index them in six months.
I've seen both outcomes. One looks like a real, useful local network. The other looks like the same page 500 times with the city name swapped, which is exactly what Google's spam systems are built to catch. This is how I'd build the first kind.
Google doesn't ban programmatic SEO. It acts on pages created mainly to rank rather than to help people, a pattern its policies call scaled content abuse. That applies however the pages were made: by a script, a team of writers or AI. Related to that, doorway abuse covers pages aimed at specific cities that all funnel visitors to the same place.
The test is simple. A location page is fine when the location changes something real: the service, price, team, availability or proof. It's a problem when the only thing that changes is the place name. No page count is safe, and the risk can spread, since a weak batch can drag down how Google sees the rest of your site. Google's John Mueller reportedly warned in September 2026 that programmatic builds often drift toward low quality.
Here's the check I use, the swap test: replace the city name on a page with any other city. If it still reads as true, it's thin.
Be honest here. If you serve 500 places, or run franchises, branches or a real service network, you may well deserve 500 pages. If you serve 40 areas and want to "cover the whole country", you don't. Pages for places you don't actually serve are the classic doorway pattern.
My usual rule: build 500 records, but only publish the ones that earn a page.
| Tier | Roughly | What it gets |
|---|---|---|
| A: your top locations | 20 to 50 | Hand-written content, real photos, real projects, 800+ words |
| B: solid local presence | 100 to 150 | Template plus rich local data plus a unique written intro |
| C: everything else | Remaining | Only publish if the data is genuinely strong. Otherwise cover it on a regional hub page |
Keep your location data in a small plugin, not in your theme, so it survives a redesign. Here's a minimal version:
<?php
/**
* Plugin Name: Location Pages
*/
function lp_register_location_cpt() {
register_post_type( 'location', [
'labels' => [ 'name' => 'Locations', 'singular_name' => 'Location' ],
'public' => true,
'hierarchical' => true, // state > city structure
'has_archive' => 'locations',
'rewrite' => [ 'slug' => 'locations', 'with_front' => false ],
'show_in_rest' => true, // block editor support
'menu_icon' => 'dashicons-location',
'supports' => [ 'title', 'editor', 'thumbnail', 'excerpt', 'page-attributes' ],
] );
register_taxonomy( 'service_area', 'location', [
'label' => 'Service Areas',
'hierarchical' => true,
'show_in_rest' => true,
'rewrite' => [ 'slug' => 'service-area' ],
] );
}
add_action( 'init', 'lp_register_location_cpt' );
register_activation_hook( __FILE__, function () {
lp_register_location_cpt();
flush_rewrite_rules(); // once, never on every page load
} ); A hierarchical post type gives you clean URLs like /locations/texas/austin/. Your theme then needs a single-location.php template (or single-location.html in a block theme).
This is where thin content is decided. If your spreadsheet has only "city" and "state", the page will be thin however clever the template is. Give each record fields that actually differ:
| Field | Example | Why it helps |
|---|---|---|
| Real service details for the area | Which services, lead times, coverage | Changes the page's substance |
| Local proof | 2 to 3 projects, reviews or photos from there | Evidence nobody else has |
| Local pricing or availability | "From $X", typical timeframes | Useful to the searcher |
| Contact or team | Local phone, assigned staff | Shows a real presence |
| Local FAQs | 3 to 5 questions customers there actually ask | Unique, answerable content |
| Local context | Regulations, climate, typical property types | Genuine local knowledge |
| Nearby areas | Related location IDs | Internal links with a reason |
Use ACF (or native meta) for the fields, and WP All Import or a WP-CLI script to load the CSV. Import in batches, not all 500 at once.
This is the step most people skip, and it's what separates a defensible build from a doorway estate. Don't let a record publish unless it passes:
Practically, import everything as draft, add a "ready to publish" field, and only publish rows that pass. Rows that fail stay in the drawer or get folded into a regional page.
You can pull custom fields into title and meta templates in both Yoast and Rank Math, so each page gets a distinct title like "Boiler Repair in Austin: 24-Hour Callouts from $89" rather than a swapped-city clone.
A good location template has sections that only appear when there's data for them, so thin records don't render empty blocks. A structure that works:
If you use schema, use LocalBusiness only for locations with a real address and presence. For service areas without one, Service with areaServed is the honest choice. Never invent addresses or use virtual offices to fake a presence.
AI can help with drafting, but only when it's working from your real data and a person edits the result. Google's concern is value, not the tool. If you want to check how ready the finished pages are for AI search, my AI SEO audit checklist covers that.
Pages with no links into them look like orphans. A coherent hierarchy looks like a real site:
Don't publish 500 pages on one afternoon. A steadier rollout:
In Search Console's Pages report, watch for "Crawled, currently not indexed" and "Discovered, currently not indexed". A big cluster usually means the pages lack unique value. Improve them or merge them into a parent page with a 301 redirect rather than adding more pages on top.
Five hundred posts is no problem for WordPress, but sloppy setups cause slowdowns:
I build WordPress sites with custom post types, data-driven page systems and the SEO structure around them, including the quality gate and rollout plan. Let's decide how many location pages you really need and build them right.
Contact Me Explore WordPress ServicesIs programmatic SEO against Google's rules?
No. It's a publishing method. Google acts on pages made mainly to rank rather than help people (scaled content abuse) and on city-targeted pages that funnel visitors to one place (doorway abuse). Pages built on real, distinct data are fine.
How many location pages can I safely publish?
There's no safe number. A hundred pages with real local detail are safer than ten near-identical ones. Publish in batches and let indexing and impressions guide you.
Can I use AI to write location pages?
Yes, as a drafting aid grounded in your real data and reviewed by a person. Mass-generating thin pages with AI can fall under scaled content abuse.
Should I use custom post types or regular pages?
Custom post types, in most cases. They keep location data organized, give you clean URLs and templates, and don't clutter your normal pages.
What if my pages aren't getting indexed?
Check Search Console for "Crawled, currently not indexed". Add unique local data, improve internal links, or merge weak pages into a regional hub with a 301 redirect.
Cite this page: Maanju, A. (2026). Programmatic SEO on WordPress: Build 500 Location Pages Without Thin Content. ajaymaanju.com. Updated November 17, 2026.
Ajay helps businesses grow online through high-performance websites, SEO strategy and mobile application development — including WordPress builds, speed and Core Web Vitals work, and site rescues. You work directly with him, not an account manager. Explore services at ajaymaanju.com →
We use cookies to analyze traffic and improve your experience. See our Privacy Policy.
Automated page speed optimizations for fast site performance