AI Post JSON Exporter
A lightweight WordPress plugin that lets you export any post, page, or public custom post type as a clean, AI-friendly JSON file.
by Kostas Chasiotis · github.com/kostaschasiotis/ai-post-json-exporter · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/kostaschasiotis/ai-post-json-exporter/archive/refs/heads/main.zipReadme
AI Post JSON Exporter
A lightweight WordPress plugin that lets you export any post, page, or public custom post type as a clean, AI-friendly JSON file.
The plugin adds a small meta box inside the WordPress editor and generates the JSON file on demand. Nothing is saved to the database.
Why this plugin exists
This plugin was created to make WordPress content easier to use with AI tools and language models.
Instead of copying content manually from the editor, you can export a structured JSON file that includes the post title, content, taxonomies, featured image data, normal public meta fields, and ACF fields.
This makes it easier to:
- give AI models clean context
- move structured content into prompts
- analyze WordPress entries outside WordPress
- prepare content for future import/export workflows
- inspect post data without dealing with internal WordPress fields
Features
- Adds an AI JSON Export meta box to posts, pages, and public custom post types
- Downloads a JSON file directly from the post editor
- Generates the export on the fly
- Does not create custom database tables
- Does not save plugin options
- Excludes internal WordPress meta fields
- Includes ACF fields when Advanced Custom Fields is active
- Includes rendered, raw, and plain-text content
- Includes taxonomies and terms
- Includes featured image data
- Uses WordPress capabilities and nonce checks for secure downloads
Exported data
Each JSON export includes:
- post ID
- post type
- post status
- slug
- title
- permalink
- created and modified dates
- author details
- raw content
- rendered HTML content
- plain-text content
- excerpt
- featured image details
- assigned taxonomies and terms
- public post meta
- ACF fields, when available
Internal meta keys starting with _ are excluded from the normal meta export.
ACF fields are exported separately under the acf key to keep the JSON cleaner and easier for AI models to understand.
Example JSON structure
{
"id": 123,
"type": "page",
"status": "publish",
"slug": "example-page",
"title": "Example Page",
"permalink": "https://example.com/example-page/",
"dates": {
"created": "2026-01-01T12:00:00+00:00",
"created_gmt": "2026-01-01T10:00:00+00:00",
"modified": "2026-01-02T12:00:00+00:00",
"modified_gmt": "2026-01-02T10:00:00+00:00"
},
"author": {
"id": 1,
"name": "Author Name",
"slug": "author-name"
},
"content": {
"raw": "<!-- wp:paragraph --><p>Hello world.</p><!-- /wp:paragraph -->",
"rendered": "<p>Hello world.</p>",
"plain_text": "Hello world.",
"excerpt": "Example excerpt."
},
"featured_image": {
"id": 456,
"url": "https://example.com/image.jpg",
"alt": "Image alt text",
"caption": "Image caption"
},
"taxonomies": {
"category": [
{
"id": 10,
"name": "News",
"slug": "news"
}
]
},
"meta": {
"custom_field": "Custom value"
},
"acf": {
"subtitle": "ACF field value"
}
}
Requirements
- WordPress 6.0 or newer
- PHP 8.0 or newer
- Advanced Custom Fields is optional
The plugin works without ACF. If ACF is not active, the acf section will simply be empty.
Installation
-
Download or clone this repository.
-
Upload the plugin folder to:
wp-content/plugins/ai-post-json-exporter/ -
In WordPress admin, go to Plugins.
-
Activate AI Post JSON Exporter.
Usage
- Open any post, page, or public custom post type entry in the WordPress editor.
- Find the AI JSON Export meta box in the sidebar.
- Click Download AI JSON.
- A
.jsonfile will be generated and downloaded immediately.
No plugin data is stored in the database.
Security
The export action is protected by:
- WordPress nonce verification
edit_postcapability checks- admin-only
admin-post.phpdownload handling
Only users who can edit a post can export its JSON data.
Privacy notes
This plugin intentionally excludes internal WordPress meta fields from the normal meta export.
However, exported content may still include sensitive information if that information exists in:
- the post content
- public custom fields
- ACF fields
- taxonomy terms
- featured image metadata
Always review exported JSON files before sharing them with third-party AI tools or external systems.
Database impact
The plugin does not:
- create database tables
- store plugin options
- save export history
- create temporary files
- modify post data
Exports are generated only when the user clicks the download button.
Future ideas
Possible future improvements:
- importer for compatible JSON files
- schema versioning
- selectable export sections
- REST API endpoint
- bulk export
- media sideloading support for imports
- export preview before download
Changelog
1.0.0
- Initial release
- Added editor meta box
- Added on-demand JSON download
- Added support for posts, pages, and public custom post types
- Added support for ACF fields
- Added public meta export
- Added taxonomy and featured image export
License
GPL-2.0-or-later
Author
Created by Kostas Chasiotis.
For questions or suggestions, contact: hello@kostaschasiotis.com
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v1.0 | Jun 11, 2026 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.