Render WordPress Gutenberg content 1:1 in Next.js. Automatic script/stylesheet loading, middleware proxy, and multi-WordPress support.
@axistaylor/nextpress - NPM Package
npm install @axistaylor/nextpressComponents and utilities for rendering WordPress content in Next.js:
Content- Render WordPress HTML content with custom parsersHeadScripts/BodyScripts- Load WordPress scripts vianext/script(server components)Stylesheets- Load WordPress stylesheets with inline styles (server component)withWCR- Next.js configuration wrapperproxyByWCR- Middleware proxy for WordPress APIs
NextPress WordPress Plugin - WordPress Plugin
composer require axistaylor/nextpressPublished on Packagist as a wordpress-plugin type, so Composer-managed WordPress installs (Bedrock or any setup with composer/installers) drop it into wp-content/plugins/nextpress/ automatically. For non-Composer sites, download nextpress.zip from the Releases page and upload it via Plugins → Add New → Upload Plugin. Full install options in the WordPress Plugin docs.
Extends WPGraphQL with assetsByUri, globalStyles, and templateByUri queries for headless Next.js frontends.
See the docs for detailed guides:
- Getting Started
- WordPress Plugin
- Content Component
- HeadScripts
- BodyScripts
- Stylesheets
- withWCR Configuration
- proxyByWCR Middleware
- Node.js 18+
- Next.js 14.2.5+
- WordPress 6.0+
- PHP 7.4+
- WPGraphQL 1.27.0+
- NPM Package: MIT
- WordPress Plugin: GPL-3.0-or-later