Programmatic SEO on WordPress: Build 500 Location Pages Without Thin Content

Programmatic SEO on WordPress: Build 500 Location Pages Without Thin Content

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.

Quick answer: Treat every location as a database record that must carry real local data, not as a page to fill with filler text. Register a custom post type, add custom fields for the local details, set a quality gate that decides which rows are allowed to publish, launch in small batches, and watch Search Console. If a location can't pass the gate, merge it into a regional hub instead of publishing a thin page.

Why Thin Location Pages Get Hit

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.

First, Decide If You Really Need 500 Pages

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

Step 1: Set Up the Custom Post Type

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).

Step 2: Build the Data Model Before the Page

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.

Step 3: Add a Quality Gate

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:

  • The business really serves this location.
  • At least three data points are unique to this page.
  • There is at least one piece of local proof (project, review or photo).
  • It passes the swap test.
  • The title, meta description and H1 are unique and written from data, not just swapped words.
  • It links to a parent hub, nearby locations and the relevant service pages.

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.

Step 4: Template the Page Like a Page, Not a Form Letter

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:

  1. A short unique intro, written or at least edited by a human.
  2. Services available in that area, with the specifics.
  3. Local proof: projects, reviews, photos.
  4. Local pricing or timeframes.
  5. Local FAQs.
  6. A map, address and contact details, only if they're real.
  7. Nearby areas and the parent hub.

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.

Step 5: Build the Internal Linking

Pages with no links into them look like orphans. A coherent hierarchy looks like a real site:

  • Hub pages for each state or region, with their own useful content (not just a list of links).
  • Breadcrumbs matching the URL structure.
  • Nearby locations blocks. Fetch them through a taxonomy or pre-computed IDs, because heavy meta queries on postmeta get slow fast.
  • Service pages that link to the locations where that service is offered.
  • Sidebar or footer links from your main pages to the hubs, not to all 500 pages.

Step 6: Launch in Batches and Watch Search Console

Don't publish 500 pages on one afternoon. A steadier rollout:

  1. Publish your Tier A pages (20 to 50).
  2. Wait 2 to 4 weeks. Check indexing and impressions.
  3. If they index and get impressions, publish the next batch of 50 to 100.
  4. Repeat.

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.

Performance and Maintenance

Five hundred posts is no problem for WordPress, but sloppy setups cause slowdowns:

  • Twenty meta fields per page means about 10,000 postmeta rows. That's fine, but clean up post revisions after your imports (see my database optimization guide).
  • Cache your "nearby locations" queries with transients.
  • Use proper page caching and a CDN. The hosting cost vs performance post explains where spending actually helps.
  • Make the template accessible, since 500 inaccessible pages means 500 problems (see my European Accessibility Act guide).
  • Refresh data regularly. Stale prices and old projects make pages less useful over time.

Common Mistakes

  • Pages for places you don't serve. The most common doorway trigger.
  • One conversion page behind everything. If every page just pushes to one form, it looks like a funnel.
  • Fake local detail. Made-up testimonials or addresses can hurt trust and break rules.
  • Publishing everything at once. You lose the chance to learn what works.
  • Never pruning. Merge or remove pages that don't earn their place.

Want This Built Properly?

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 Services

Frequently Asked Questions

Is 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.

AM

Ajay Maanju — Web Development, SEO & AI Automation Expert

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 →