Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/temikeezy/wp-gutenberg-json-exporter/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Expose Gutenberg block data for any WordPress post via a REST API — now with support for slugs, ACF, and Yoast SEO metadata.
🔧 Features
- Retrieve parsed Gutenberg blocks as structured JSON.
- Query by post ID or slug.
- Include Advanced Custom Fields (ACF) if active.
- Include Yoast SEO metadata if available.
- Fallback to raw HTML content if blocks aren't detected.
📦 Endpoints
GET /wp-json/gutenberg-json/v1/post/{id}
GET /wp-json/gutenberg-json/v1/slug/{slug}
Example Response
{
"id": 123,
"slug": "hello-world",
"title": "Hello World",
"blocks": [
{
"blockName": "core/paragraph",
"attrs": [],
"innerHTML": "<p>Welcome</p>",
"innerBlocks": []
}
],
"raw_content": "<!-- wp:paragraph --><p>Welcome</p><!-- /wp:paragraph -->",
"acf": {
"custom_field": "Value"
},
"yoast": {
"seo_title": "Custom SEO Title",
"seo_description": "Custom description",
"focus_keyword": "WordPress"
}
}
🚀 Installation
- Upload to
wp-content/plugins/wp-gutenberg-json-exporter - Activate from WordPress admin
🧪 Tested On
- WordPress 5.8+
- PHP 7.4+
- ACF Pro / Free
- Yoast SEO
📄 License
GPLv2 or later