Skip to content

Dataset

WordPress post and revision datasets for AI training

A WordPress dataset is an extract of one site's database: posts, pages and custom post types from the posts table with their saved revisions, the categories and tags attached to them, post meta written by core and plugins, media attachment records and the menus that order the site. SourceX sources it to a buyer's spec from established businesses that publish on WordPress, self-hosted or on a managed host. Revisions and plugin records need a database dump, since the built-in export file omits them. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
One site's posts, pages and custom post types with their revision rows, terms, post meta, attachment records and menus
Typical systems
Self-hosted WordPress or a managed WordPress host, with the block or classic editor and the plugins and page builder the site ran
Typical history
Specified by the buyer; content can date from the site's launch, but revisions reach back only as far as site settings and cleanup plugins left them
Modality
Post text as block markup and rendered prose, structured term and meta tables, and image files where rights allow
Delivery formats
Agreed per order; JSONL per post with raw and rendered content and a revision array, or a filtered SQL dump, with a meta key dictionary
Preparation
Users replaced with author keys; users, usermeta, comments and options tables removed; third-party content filtered
Licensing
Rights reviewed for authorship, syndicated text and licensed images, and against host and plugin terms; permitted use set in the license
Availability
Sourced to your spec by site topic, post count, revision depth and editor in use; supply is not guaranteed
TextIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
post_idintegerID from the posts table, where posts, pages, attachments, revisions and menu items are all rows. Revisions and attachments point to it through post_parent.
post_typestringThe post_type column: post, page, attachment, or a Custom Post Type registered by the theme or a plugin.
post_statusstringThe post_status column, such as publish, draft, pending, private, future or trash.
slug_and_datesobjectpost_name, post_date_gmt and post_modified_gmt as stored, plus earlier slugs from the _wp_old_slug Post Meta key.
author_keystringStable pseudonym for post_author, a User ID. A Revision row carries the key of whoever saved that revision.
titlestringpost_title as stored on the Post or Page.
content_rawstringpost_content as stored: Block comment markup, shortcodes and classic editor HTML without paragraph tags.
blocksarrayThe parsed Block tree of content_raw: block name, attributes and inner HTML, with reusable block references resolved.
content_renderedstringText after block rendering, shortcode expansion and paragraph formatting.
unrenderedarrayShortcodes and dynamic Blocks left unexpanded because the plugin or theme code behind them was missing.
revisionsarrayChild rows of post_type revision: title, content and excerpt at each save, save time and author key, with autosaves marked.
termsarrayCategory, Tag and custom taxonomy terms joined through term_relationships and term_taxonomy, with parent term.
post_metaarrayPost Meta key and value pairs, each key mapped to core, the theme or the plugin that wrote it, such as _thumbnail_id.
attachmentsarrayMedia Attachment rows under the post: file path from _wp_attached_file, mime type, alt text, caption and a rights flag.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "post_id": 4127,
  "post_type": "post",
  "post_status": "publish",
  "slug_and_dates": {
    "post_name": "how-to-size-a-sump-pump",
    "old_slugs": [
      "sump-pump-sizing"
    ],
    "post_date_gmt": "2022-09-14 13:05:00",
    "post_modified_gmt": "2024-02-02 17:41:19"
  },
  "author_key": "author_03",
  "title": "How to Size a Sump Pump for Your Basement",
  "content_raw": "<!-- wp:paragraph -->\n<p>Size a pump by flow and lift, not horsepower.</p>\n<!-- /wp:paragraph -->\n\n<!-- wp:shortcode -->\n[pump_calculator units=\"gph\"]\n<!-- /wp:shortcode -->\n\n<!-- wp:block {\"ref\":3871} /-->",
  "blocks": [
    {
      "name": "core/paragraph",
      "attrs": {}
    },
    {
      "name": "core/shortcode",
      "attrs": {}
    },
    {
      "name": "core/block",
      "attrs": {
        "ref": 3871
      },
      "resolved_title": "Free estimate callout"
    }
  ],
  "content_rendered": "Size a pump by flow and lift, not horsepower. Call us for a free estimate.",
  "unrendered": [
    "shortcode: pump_calculator"
  ],
  "revisions": [
    {
      "revision_id": 4130,
      "post_name": "4127-revision-v1",
      "saved_gmt": "2022-09-13 20:48:10",
      "author_key": "author_07",
      "title": "Sizing a Sump Pump",
      "content_raw": "<!-- wp:paragraph -->\n<p>Most basements need a small pump.</p>\n<!-- /wp:paragraph -->"
    }
  ],
  "terms": [
    {
      "taxonomy": "category",
      "name": "Basement Waterproofing",
      "parent": "Services"
    },
    {
      "taxonomy": "post_tag",
      "name": "sump pumps"
    }
  ],
  "post_meta": [
    {
      "key": "_thumbnail_id",
      "value": "4125",
      "written_by": "core"
    },
    {
      "key": "_yoast_wpseo_metadesc",
      "value": "Size a sump pump by flow rate and lift.",
      "written_by": "Yoast SEO"
    }
  ],
  "attachments": [
    {
      "post_id": 4125,
      "file": "2022/09/sump-pit-diagram.png",
      "alt": "Sump pit with pump",
      "rights": "made in-house"
    }
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Learn editing from saved revisions

Consecutive revision rows of one post give before and after text with save time and editor key.

Parse and render CMS markup

Raw block markup and shortcodes paired with rendered text teach models to read content as a CMS stores it.

Tag and categorize articles

Categories and tags the site's own editors assigned are labels for topic classification.

Write titles and search descriptions

Post bodies paired with titles, excerpts and SEO plugin fields show how a business summarized its pages.

Test retrieval over a whole site

One site's pages, posts and menus make question sets whose answers sit in a known page.

Use-case guides: Document AI, enterprise search and RAG, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Revision depth reported

Revision counts per post, with any cap or purge stated.

Raw and rendered together

Each post carries stored markup and the rendered text side by side.

Render gaps listed

Shortcodes and dynamic blocks that could not be rendered are named.

Meta key dictionary

Each post type and meta key mapped to core, the theme or the plugin that wrote it.

Third-party content flagged

Guest, freelance and syndicated posts and licensed images are marked or removed.

Personal tables excluded

No users, usermeta, comments or options rows in the delivery.

Record timeline

WordPress dataset

This page covers wordPress site content records.Illustrative

One posts table holds every content type and its edit history

WordPress keeps almost everything in one table. A blog post, a page, an uploaded image, a menu item, a reusable block and whatever a plugin registered as a custom post type, such as an event, are all rows in posts, told apart by post_type and nested through post_parent. Categories and tags live in the taxonomy tables. Anything else about a post is a key and value in postmeta: the featured image is _thumbnail_id pointing at an attachment row, and a custom fields or SEO plugin writes its values under its own keys. A menu is a term, and each of its entries is a row of type nav_menu_item.

Edit history sits in the same table. When an editor saves a changed post, WordPress writes a child row of type revision, named after the parent's ID, holding the title, content and excerpt at that save and the user who made it. Autosaves are similar rows, overwritten each time. Revisions do not hold categories, tags, the featured image or most post meta, so earlier versions of an SEO description are gone. The parent's post_modified is overwritten on each save, and core keeps no log of status changes, so when a draft was approved is not recorded. Depth is a site setting: a line in the configuration file can cap or disable revisions, and cleanup plugins delete them.

Plugins write into this same database, in two ways. Many add post types and post meta in the core tables. Others create their own tables beside them for form entries, redirects or store orders. Page builders differ again: some keep the layout as JSON in post meta and leave only a flattened copy in post_content, others fill post_content with nested shortcodes.

The export file is not the site, and stored content is not what readers saw

The built-in export writes a WXR file, an RSS-style XML of posts, pages, custom post types, their terms and custom fields, comments and authors. It leaves out revisions, plugin tables and site options. Attachments appear as items with a URL, while the image files stay in the uploads folder on the server. The file also carries author emails and commenters' names, emails and IP addresses. The REST API returns rendered content of published posts to anyone, and raw content and revisions only to a logged-in editor. A faithful dataset starts from a database dump plus the uploads folder, yet the dump holds what must not ship: password hashes in the users table, session tokens in usermeta, the comments table and API keys in options. On WordPress.com and some managed hosts, database access depends on the plan.

Stored content is source, not the page. The block editor wraps each block in HTML comments that name it and carry its settings as JSON. A dynamic block, such as a list of recent posts, holds only the comment and is produced by PHP on request, and a reusable block, now called a synced pattern, is a reference to another row. Classic editor content is stored without paragraph tags, which WordPress adds on display. Shortcodes are bracketed tags expanded by plugin or theme code, and when that plugin is gone the shortcode prints as literal text. Rendering needs a restored copy of the site with its plugins and theme active.

Test a sample by searching rendered text for square brackets and block comments. Compare each post's earliest revision with its publish date, and count posts with none. Resolve featured image IDs to attachment rows and files, and list image URLs on other domains. Author keys with one or two posts, and phrases such as originally published, suggest guest or syndicated work.

What to check before licensing

  • Have the site owner and counsel check the terms on exported content and API use: the host's, including WordPress.com where Automattic hosts the site, and each paid plugin's and theme's.
  • Confirm the business owns each post: request the author list with employment or contract status, and how freelance, guest and syndicated posts were removed.
  • Ask how images were cleared, since a stock or agency license may cover display on the site and nothing more, and confirm which uploads are in scope.
  • Confirm the users, usermeta, comments and options tables and plugin form-entry tables were removed, and that no emails, password hashes, session tokens or API keys remain.
  • Ask whether revisions were ever capped, disabled or purged, and request revision counts per post and the earliest revision date.
  • Request the plugins and theme active over the period, the editor used (block, classic or a page builder), and which of post_content or builder meta was treated as the content.
  • On a sample, compare raw and rendered content: no unexpanded shortcodes or block comments, and attachment IDs matched to delivered files.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Is the built-in WordPress export file enough?

Usually not. The export file carries posts, pages, terms, comments, authors and custom fields, but not revisions, plugin tables or the media files themselves. For edit history or rendered text, ask for a dataset built from a database dump and the uploads folder. For a plain corpus of published articles, the export file can be enough once comments and author details are removed.

How much revision history should I expect?

It varies by site. WordPress saves a revision row each time a changed post is saved, but a site can cap or switch off revisions in its configuration, and database cleanup plugins delete them. Revisions hold title, content and excerpt only. Ask for revision counts per post before agreeing scope.

What is the difference between raw and rendered content?

Raw content is post_content as stored, with block comments, shortcodes and classic editor HTML that has no paragraph tags. Rendered content is what WordPress produces after running blocks, shortcodes and formatting with the site's plugins active. A model learning CMS markup wants raw, a model learning prose wants rendered, and a good delivery carries both.

Are comments and user accounts included?

No, a de-identified delivery leaves both out. The comments table holds commenters' names, emails and IP addresses, and the users table holds logins, emails and password hashes, so both are removed and authors become stable keys. Comment text, if a buyer wants it, needs scrubbing and its own rights review, because commenters, not the business, wrote it.

Does plugin data come with the content?

It depends on where the plugin stored it. Custom post types and post meta travel with the posts table. A plugin's own tables must be named in the spec. Form entries hold personal data, so leave them out unless the spec and the rights review cover them, and treat store orders as a separate kind of dataset.

Is SourceX affiliated with WordPress or Automattic?

WordPress is named to identify the system the records come from. That does not imply a partnership with or endorsement by the WordPress open source project or Automattic. The records belong to the business that runs WordPress, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies