Title: Seory Posts to Markdown
Author: seoryco
Published: <strong>August 10, 2026</strong>
Last modified: October 21, 2026

---

Search plugins

![](https://ps.w.org/seory-posts-to-markdown/assets/banner-772x250.png?rev=3640661)

![](https://ps.w.org/seory-posts-to-markdown/assets/icon-256x256.png?rev=3640661)

# Seory Posts to Markdown

 By [seoryco](https://profiles.wordpress.org/seoryco/)

[Download](https://downloads.wordpress.org/plugin/seory-posts-to-markdown.0.2.2.zip)

 * [Details](https://frp.wordpress.org/plugins/seory-posts-to-markdown/#description)
 * [Reviews](https://frp.wordpress.org/plugins/seory-posts-to-markdown/#reviews)
 *  [Installation](https://frp.wordpress.org/plugins/seory-posts-to-markdown/#installation)
 * [Development](https://frp.wordpress.org/plugins/seory-posts-to-markdown/#developers)

 [Support](https://wordpress.org/support/plugin/seory-posts-to-markdown/)

## Description

Seory Posts to Markdown converts your site content into clean Markdown files and
bundles them into a single ZIP archive — ready to hand to AI tools, static site 
generators, or any Markdown-based workflow.

**Runs on your server.** No API keys, no accounts, and no external service of its
own. With the raw content mode, conversion contacts no external service. With the
rendered content mode of the ZIP export, WordPress applies the same content filters
as when a post is displayed, so embeds (oEmbed), your theme, or other plugins may
contact external services. See the FAQ.

#### Features

 * Export posts, pages, and public custom post types in one click
 * YAML front matter: title, date, type, status, slug, link, author, featured image,
   categories, tags, custom taxonomy terms, draft flag
 * **Two content modes**: raw editor content, or fully rendered content with shortcodes
   and blocks expanded (`the_content` filters applied)
 * Per-post-type taxonomy filters (categories, custom taxonomies) plus a global 
   date range; optionally include drafts
 * Flexible output layout: flat files (`slug.md`), per-post folders (`slug/index.
   md`), date prefixes (`2024-01-15-slug.md`), and year / year-month folders
 * Optional `index.md` table of contents — a convenient entry point when handing
   the archive to AI tools
 * GFM tables, fenced code blocks, ATX headings
 * Batch processing keeps large sites within PHP time limits
 * Read-only WordPress Abilities (WordPress 6.9+) so AI tools can list changed posts,
   fetch a post as Markdown, and list external links through your site’s own REST
   API

#### What it does not do

 * Images are not downloaded; image URLs remain as Markdown references
 * `script`, `style`, and `noscript` elements are removed from the output

#### Related

A browser-based version (convert a WordPress export XML without installing anything)
is available at [tools.seory.co.jp/wp-to-markdown](https://tools.seory.co.jp/wp-to-markdown).

## Screenshots

[⌊Export settings under Tools → Seory Posts to Markdown: per-post-type selection
with taxonomy filters, content rendering modes, date range, and output options⌉⌊
Export settings under Tools → Seory Posts to Markdown: per-post-type selection with
taxonomy filters, content rendering modes, date range, and output options⌉[

Export settings under Tools  Seory Posts to Markdown: per-post-type selection with
taxonomy filters, content rendering modes, date range, and output options

## Installation

 1. Install and activate the plugin.
 2. Go to **Tools  Seory Posts to Markdown**.
 3. Choose post types and output options, then click **Convert and download ZIP**.

## FAQ

### Is my content sent anywhere?

This plugin does not send your content to its developer, and it has no external 
service of its own. Conversion runs on your own server, and the generated ZIP is
deleted right after download. Whether anything else contacts an external service
depends on the content mode:

 * _Raw editor content_ (ZIP export, and `get-post-markdown` with `mode=raw`): the`
   the_content` filters are not run, so conversion contacts no external service.
 * _Rendered content_ in the ZIP export: the `the_content` filters run exactly as
   when a post is displayed. If a post contains an embeddable URL on its own line(
   for example a YouTube link), WordPress’s oEmbed feature may request the embed
   code from that provider and cache it in post meta, and your theme or other plugins
   hooked into `the_content` may make their own requests.
 * _Abilities_ (`get-post-markdown` with `mode=rendered`, and `list-external-links`):
   oEmbed is turned off while they render, so they make no oEmbed requests and do
   not write the oEmbed cache; embeds stay as plain URLs. Requests made by your 
   theme or other plugins inside `the_content` are not blocked.

### What is the difference between the two content modes?

_Raw editor content_ converts the stored post content as-is: shortcodes stay unexpanded
and block markup comments are removed. _Rendered content_ applies the `the_content`
filters first, so shortcodes and blocks are expanded to their final HTML before 
conversion.

### Which user roles can use it?

 * **ZIP export** (Tools  Seory Posts to Markdown): users with the `export` capability(
   Administrators by default).
 * **Abilities** (for AI tools, WordPress 6.9+): any logged-in user for published
   posts, and Editors and Administrators for other statuses, always limited to the
   posts that user can read or edit. See “Which abilities are available, and who
   can use them?” below.

### Are custom post types supported?

Yes — all public custom post types appear in the post type list.

### Can I customize the front matter?

Yes. Developers can add, remove, or reorder keys with the `seoryco_wpmd_frontmatter`
filter:

    ```
    add_filter( 'seoryco_wpmd_frontmatter', function ( $pairs, $post ) {
        $pairs['subtitle'] = '"' . get_post_meta( $post->ID, 'subtitle', true ) . '"';
        return $pairs;
    }, 10, 2 );
    ```

Values must be YAML-formatted; keys with an empty-string value are omitted.

### Can AI tools access my content directly?

Yes, optionally. Starting with version 0.2, on WordPress 6.9+ this plugin registers
read-only WordPress Abilities (`wp_register_ability()`) for listing posts, fetching
a single post as Markdown, and listing external links. AI tools and agents (such
as Claude Code or Codex) can call these through WordPress’s own REST endpoint (`/
wp-json/wp-abilities/v1/abilities/...`) using an Application Password — the same
authentication method used by the standard WordPress REST API. The request comes
_from_ the AI tool _to_ your own site, exactly like any other REST API client; this
plugin does not push your content to its developer or to any other service (see “
Is my content sent anywhere?” for what rendering may contact). We recommend creating
a dedicated WordPress user with limited capabilities for this purpose.

If you also install the third-party MCP Adapter plugin, these abilities can be exposed
as MCP tools as well. MCP Adapter is not bundled with this plugin.

### Which abilities are available, and who can use them?

All abilities are read-only and are called with GET, passing input as `input[...]`
query parameters:

 * `seoryco-wpmd/list-posts` — posts modified after a given time (`modified_after`,
   e.g. `2026-09-01T00:00:00Z`), oldest change first
 * `seoryco-wpmd/list-post-ids` — every post ID with its status and modified time,
   including trashed items, in ID order, for detecting deletions
 * `seoryco-wpmd/get-post-markdown` — one post as Markdown with front matter, the
   same format as a file in the ZIP export (with `mode=rendered`, embeds are not
   fetched and stay as plain URLs; `mode=raw` requires permission to edit the post)
 * `seoryco-wpmd/list-external-links` — links to other domains with anchor text,
   rel, target, and surrounding text. At most 200 links are listed per post (`truncated`),
   and only the first 1 MB of each post’s rendered HTML is scanned (`content_truncated`,`
   content_truncated_post_ids`; developers can change the size with the `seoryco_wpmd_links_max_html_bytes`
   filter)

The list abilities are paged with cursors: pass `next_cursor` (list-posts, list-
external-links) or `next_after_id` (list-post-ids) from one response as `cursor`/`
after_id` in the next request, with the other input unchanged, until it is `null`.
Posts edited or deleted while you page through do not cause others to be skipped.

“Modified time” is the effective modified time: `post_modified_gmt`, or, when that
is `0000-00-00 00:00:00` (drafts inserted directly by some importers), `post_modified`
converted to GMT with the site’s current UTC offset. Known limitation: if the site’s
time zone switches between daylight saving and standard time while you page through`
list-posts` or `list-external-links`, such posts can move by an hour and be missed
in that run. A periodic full comparison with `list-post-ids` (for example monthly)
picks them up.

Permissions are checked at two levels:

 * **Per request**: requests limited to published posts need only a logged-in user(
   the `read` capability). Requests that include drafts, pending, scheduled, private,
   or trashed posts require `edit_others_posts` (Editors and Administrators by default).`
   list-post-ids` always requires `edit_others_posts`. Developers can change this
   request-level capability with the `seoryco_wpmd_ability_permission` filter.
 * **Per post**: only publicly viewable post types are served, and a post is included
   only if the user can read it (`read_post`, for published and private posts) or
   edit it (`edit_post`, for drafts, pending, scheduled, and trashed posts). Post
   types with their own capabilities are checked with those capabilities. The filter
   above cannot widen this.
 * **Raw content**: `get-post-markdown` with `mode=raw` also requires permission
   to edit the post (`edit_post`), like `content.raw` in the standard REST API. 
   Raw content skips the `the_content` filters, which membership and other content-
   restriction plugins often use to hide content. Users who cannot edit the post
   use `mode=rendered`, where those restrictions apply.

Password-protected posts are never returned as Markdown or scanned for links.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Seory Posts to Markdown” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ seoryco ](https://profiles.wordpress.org/seoryco/)

“Seory Posts to Markdown” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/seory-posts-to-markdown/contributors)
for their contributions.

[Translate “Seory Posts to Markdown” into your language.](https://translate.wordpress.org/projects/wp-plugins/seory-posts-to-markdown)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/seory-posts-to-markdown/),
check out the [SVN repository](https://plugins.svn.wordpress.org/seory-posts-to-markdown/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/seory-posts-to-markdown/)
by [RSS](https://plugins.trac.wordpress.org/log/seory-posts-to-markdown/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.2.2

 * Changed: requires PHP 8.3 or later. PHP 8.2 and earlier are at or near the end
   of their security support.
 * Hardening: ZIP archives left behind by abandoned exports (for example when the
   tab is closed before the download starts) are now deleted automatically. Old 
   archives are removed when a new export starts and by a one-off scheduled cleanup
   about two hours later; deactivating the plugin removes all of them along with
   their export jobs (on every site when network-deactivated). Uninstalling now 
   also cleans up every site of a multisite network.
 * Hardening: an export continues only while its ZIP archive still holds every file
   written so far, and the download checks the same; otherwise the export stops 
   with an error instead of producing an incomplete archive.

#### 0.2.1

 * Security: `get-post-markdown` with `mode=raw` now requires permission to edit
   the post. Previously any logged-in user who could read a published post could
   get its stored content, bypassing content restrictions that membership plugins
   apply through the `the_content` filters. `mode=rendered` is unchanged.
 * Hardening: rendered conversion now restores the global post even when a content
   filter throws, so later filters never check the wrong post.

#### 0.2

 * New: read-only WordPress Abilities for AI tools — list-posts, list-post-ids, 
   get-post-markdown, and list-external-links (WordPress 6.9+).
 * New: `seoryco_wpmd_ability_permission` filter to adjust who can run the abilities.
 * New: `seoryco_wpmd_links_max_html_bytes` filter for the per-post HTML size that`
   list-external-links` scans (default 1 MB).
 * Changed: requires WordPress 6.9 or later.
 * Changed: clarified that the rendered content mode of the ZIP export can trigger
   embeds (oEmbed), theme, or plugin requests, as when a post is displayed. The 
   abilities turn oEmbed off while they render.
 * The ZIP export works as before.

#### 0.1

 * Initial release.

## Meta

 *  Version **0.2.2**
 *  Last updated **3 weeks ago**
 *  Active installations **10+**
 *  WordPress version ** 6.9 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 8.3 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/seory-posts-to-markdown/) and [Japanese](https://ja.wordpress.org/plugins/seory-posts-to-markdown/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/seory-posts-to-markdown)
 * Tags
 * [AI](https://frp.wordpress.org/plugins/tags/ai/)[converter](https://frp.wordpress.org/plugins/tags/converter/)
   [export](https://frp.wordpress.org/plugins/tags/export/)[LLM](https://frp.wordpress.org/plugins/tags/llm/)
   [markdown](https://frp.wordpress.org/plugins/tags/markdown/)
 *  [Advanced View](https://frp.wordpress.org/plugins/seory-posts-to-markdown/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/seory-posts-to-markdown/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/seory-posts-to-markdown/reviews/)

## Contributors

 *   [ seoryco ](https://profiles.wordpress.org/seoryco/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/seory-posts-to-markdown/)