Metronyx Headless CMS Connector
Launch production-ready headless WordPress builds faster with a maintained plugin that handles clean REST endpoints, CORS rules, and content metadata automation for you.
Version 1.0.4 · Requires WordPress 5.0+ · Tested with 6.9 · PHP 7.4+
Clean REST API Coverage
Serve posts, pages, categories, and tags through a locked-down namespace that stays aligned with core WordPress updates.
- ● Slug-based lookups for SEO-friendly routing
- ● Featured content flags and read time metadata
- ● Image variants sized for hero, cards, and thumbnails
Frontend-Ready CORS Controls
Grant access to staging and production frontends instantly while keeping origin-level security tight.
- ● Allow-list management directly inside WordPress
- ● Localhost access for development out of the box
- ● Credential support for authenticated calls
Editor-Friendly Automation
Keep marketing teams moving with automatic meta handling for featured content, read time estimates, and responsive imagery.
- ● Featured content flags ready for hero placements
- ● Auto-calculated read time for every post
- ● Optimised image presets for hero, card, and thumbnail blocks
Cache & Revalidation Support
Trigger ISR or edge revalidation whenever editors hit publish so your Next.js build stays fresh without manual deploys.
- ● Webhook endpoint field for on-demand revalidation
- ● Secret token management inside the WordPress dashboard
- ● Designed for Vercel, Netlify, and custom pipelines
See it inside WordPress
Every screen is designed for speed so developers and editors can collaborate without wrestling the CMS.
API Endpoints
All endpoints live under the metronyx-connector/v1 namespace.
GET /wp-json/metronyx-connector/v1/posts All posts with pagination
GET /wp-json/metronyx-connector/v1/posts/{slug} Single post by slug
GET /wp-json/metronyx-connector/v1/posts/featured Featured posts only
GET /wp-json/metronyx-connector/v1/pages All pages
GET /wp-json/metronyx-connector/v1/pages/{slug} Single page by slug
GET /wp-json/metronyx-connector/v1/categories All categories
GET /wp-json/metronyx-connector/v1/tags All tags
Three steps to production
1. Install and activate
Add the Metronyx Headless CMS Connector plugin to your WordPress stack and activate like any other plugin.
2. Point it at your frontend
Drop the REST base URL, allowed origins, and optional revalidation secret into your Next.js or React environment file.
3. Ship content to production
Fetch everything with a single namespace, drop content into your design system, and revalidate pages the moment editors publish.
Quick Start
// Fetch all posts
const posts = await fetch('/wp-json/metronyx-connector/v1/posts')
.then(res => res.json());
// Fetch single post by slug
const post = await fetch('/wp-json/metronyx-connector/v1/posts/your-post-slug')
.then(res => res.json());
// Next.js getStaticProps example
export async function getStaticProps({ params }) {
const post = await fetch(
`${process.env.WORDPRESS_API_URL}posts/${params.slug}`
).then(res => res.json());
return { props: { post } };
}
Data Structure
Every API response includes:
- Basic content — title, slug, content, excerpt
- SEO metadata — title tag, meta description, canonical URL
- Featured images with multiple sizes (hero, card, thumbnail)
- Categories and tags
- Author information
- Custom meta fields
- Read time calculation
- Featured content flag
Built for modern stacks
Use the connector with ISR, SSR, or static builds. It plays nicely with Vercel, Netlify, and self-hosted pipelines so your infra team keeps full control.
Need even more control? Hook into the plugin filters to extend the response payload with custom fields or bespoke taxonomies.
Enterprise support ready
Metronyx builds headless WordPress for fast-growing brands. If you need multi-region caching, custom auth layers, or AI-enriched content ops, we can help.
Build with whatever matches your stack
Bolt.new, v0, Lovable, Cursor, Next.js, OpenAI-powered builds. Whichever IDE or framework you spin up, the connector keeps WordPress content flowing to your frontend.
React
Vue.js
Angular
Nuxt
SvelteKit
Astro
Gatsby
Remix
Frequently Asked Questions
The connector supports WordPress 5.0 and newer and is tested with the latest 6.9 release so you can upgrade with confidence.
No additional code is required. Posts, pages, categories, and tags are exposed with pagination, slug queries, and featured flags ready to consume.
Yes. The connector is framework agnostic. Next.js (ISR, SSR, SSG), Remix, Astro, SvelteKit, Nuxt, custom React builds, and more can all point to the same REST namespace.
Posts, pages, categories, and tags live under the metronyx-connector namespace with slug-based lookups and pagination controls.
Yes. Allow-list origins directly inside WordPress. Localhost URLs are permitted for development, and you can maintain separate staging and production origins.
Yes. Read time is calculated and returned with each post so you can display accurate estimates on the frontend.
Preset hero, card, and thumb sizes are generated so you can plug them into CDN workflows or native srcset attributes without extra processing.
Store your webhook URL and secret in the plugin settings, then call it from a publish hook or automation to trigger ISR or edge revalidation on your frontend.
Yes. Use native WordPress filters such as rest_prepare_post or rest_prepare_page to append custom fields, post types, or taxonomies without forking the plugin.
Yes. Credentialed calls are supported thanks to credential-friendly CORS headers. Use standard WordPress authentication like Application Passwords and keep secrets in environment variables.
Set the REST base URL, allowed origins, and optional revalidation secret in your frontend environment variables, then fetch content from the single metronyx-connector namespace.
Built by Metronyx
This plugin is built and maintained by Arielle Phoenix, founder of Metronyx — an AI search optimization agency that helps businesses get cited by AI engines like ChatGPT, Perplexity, and Google AI Overviews.