GEOforge Schema
·
Renders GEOforge-generated JSON-LD schema in the page head and opens Yoast SEO / Rank Math / The SEO Framework SEO meta for REST writes.
GEOforge generates JSON-LD schema markup and meta descriptions for the articles it publishes. WordPress strips inline <script> tags from post bodies (KSES sanitization) and hides underscore-prefixed meta from the REST API by default, so neither can be set by an external publishing tool without a companion plugin.
This plugin solves that by:
- Registering a
_geoforge_jsonldpost-meta key, exposed via the REST API for every public REST-enabled post type, that GEOforge writes to when publishing or updating an article. - Printing the stored JSON-LD inside a proper
<script type="application/ld+json">tag in the page<head>on any singular view — posts, pages, and custom post types. - Registering the SEO post-meta keys used by Yoast SEO (
_yoast_wpseo_metadesc), Rank Math (rank_math_description), and The SEO Framework (_genesis_title/_genesis_description) for REST API write access, so GEOforge can sync SEO titles and meta descriptions on publish. Each registration uses anedit_postauth check andsanitize_text_field-based sanitization capped at 320 characters. Registration is idempotent — if the SEO plugin already exposes the key for REST, our registration is a no-op.
No configuration required. Install, activate, and any GEOforge-published article will get its schema markup rendered correctly and its meta description handed to whichever SEO plugin is active.