Documentation

Schema, sitemaps and the command line

Structured data that cooperates with whatever SEO plugin you already run, sitemap behaviour that respects the quality gate, and the full WP-CLI surface.

Two schema modes, detected at render time

Standalone — no SEO plugin active: each generated page emits one JSON-LD graph containing LocalBusiness (from your business profile), Service with areaServed, BreadcrumbList, and FAQPage when the page answers questions in details blocks. The plugin also writes the page’s meta description.

Integrated — Yoast SEO, Rank Math, All in One SEO or SEOPress active: Townsmith steps back. It emits only the Service piece, wired by reference to the host plugin’s organisation node, and leaves titles, descriptions and the rest of the graph to the plugin you chose. Detection happens at render time, so activating or deactivating an SEO plugin adapts the output immediately — no settings to reconcile, and never a duplicate LocalBusiness.

Sitemaps and noindex

Published generated pages appear in the sitemap like any page. Pro adds an optional rule: published pages that fall below the quality threshold are marked noindex and dropped from the sitemap until they recover — damage control for a site that published first and asked questions later.

The command line

wp lpe generate --services=12 --areas=4,5,6 --blueprint=33 --user=admin
wp lpe queue status|run|retry
wp lpe trash  --service=12     # disposition before deleting an entity
wp lpe detach --area=5         # keep pages as ordinary, unmanaged pages
wp lpe hub --service=12 --create --user=admin
wp lpe sync [--page=ID --user=admin | --all]
wp lpe update-slugs --service=12|--area=5|--all --user=admin   # Pro

Everything the screens do, the CLI does — generation, queue management, the trash-or-detach choice when removing a service or area, hub designation, sync, and the explicit URL update after a rename (which reports every old → new pair and fires lpe_slug_updated for your redirect manager). Useful for provisioning client sites from a script.

Back to the documentation index.