Skip to content

Repository files navigation

NextPress

NextPress

npm version WordPress Plugin Version License: MIT License: GPL v3

Render WordPress Gutenberg content 1:1 in Next.js. Automatic script/stylesheet loading, middleware proxy, and multi-WordPress support.

Packages

@axistaylor/nextpress - NPM Package

npm install @axistaylor/nextpress

Components and utilities for rendering WordPress content in Next.js:

  • Content - Render WordPress HTML content with custom parsers
  • HeadScripts / BodyScripts - Load WordPress scripts via next/script (server components)
  • Stylesheets - Load WordPress stylesheets with inline styles (server component)
  • withWCR - Next.js configuration wrapper
  • proxyByWCR - Middleware proxy for WordPress APIs

NextPress WordPress Plugin - WordPress Plugin

composer require axistaylor/nextpress

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

Documentation

See the docs for detailed guides:

Requirements

  • Node.js 18+
  • Next.js 14.2.5+
  • WordPress 6.0+
  • PHP 7.4+
  • WPGraphQL 1.27.0+

License

  • NPM Package: MIT
  • WordPress Plugin: GPL-3.0-or-later

About

Provides components and tooling to render WordPress page content on a 1:1 scale

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages