Skip to content

WordPress Setup

Configure your WordPress installation to work with NextPresser as a headless CMS.

Requirements

  • WordPress 6.0 or higher
  • WPGraphQL plugin installed and activated
  • SSL certificate (recommended for production)

Installation Steps

1. Install WPGraphQL

WPGraphQL is required for NextPresser to communicate with WordPress.

  1. Navigate to PluginsAdd New in your WordPress admin
  2. Search for "WPGraphQL"
  3. Install and activate the plugin
  4. Verify installation by visiting /graphql endpoint
  1. Go to SettingsPermalinks
  2. Select "Post name" or "Custom Structure"
  3. Save changes

3. Set Up CORS

Configure CORS settings to allow your Next.js frontend to access the WordPress API.

GraphQL Endpoint

Your GraphQL endpoint will be available at:

https://your-wordpress-site.com/graphql

Next Steps