A plugin for exporting WordPress to Markdown

Since the rise of large language models in 2022, building knowledge bases or digital twins using AI has become a pressing need for many bloggers. This is because bloggers who have been writing for a long time and already have a lot of text content have more accumulated resources compared to others.

In practice, feeding text to large models in the simplest Markdown format often yields the best results. Unfortunately, WordPress, the most popular blogging platform currently, does not officially offer a function to export blog posts as Markdown files.

Previously, a relatively mature solution online was wordpress-export-to-markdown developed by Will Boyd, which can convert WordPress blog posts to Markdown format quite well. However, a slight drawback is that it’s a Python program, requiring you to configure a Python environment on your own computer, which might be somewhat difficult for novice users.

I was surprised why, given such strong demand, there isn’t a WordPress plugin that can directly accomplish this within the blog itself. Coincidentally, ByteDance’s Cursor-like IDE tool Tare is in a free promotion period, offering unlimited free usage of Claude 3.7 Sonnet. So, I directly asked AI to write one for me. From the initial version generation to debugging and completing the first release, it took about 6 hours in total.

WP Markdown Exporter – Batch Export Your Entire WordPress Site to MD Format

Current Version: 1.0.1 (March 7, 2025)

This plugin is not yet listed in the official WordPress.org plugin directory, so updates may be delayed.

Download Address:

Github Release

Introduction:

Export your WordPress posts to Markdown files (including images), making content migration or creating portable backups simple.

This tool allows you to export WordPress posts to Markdown files, including complete images. This plugin is perfect for content creators with the following needs:

  • Create portable backups of content
  • Migrate posts to other platforms that support Markdown
  • Edit Markdown formatted content offline
  • Archive posts in a format that does not rely on WordPress
  • Feed blog posts to AI or AI-driven knowledge bases

Main Features:

  • Export posts to clean Markdown files
  • Optionally download and include images used in posts
  • Filter posts by category and date range
  • Create separate ZIP packages for posts and images
  • Maintain correct formatting during conversion
  • Simple and intuitive user interface

FAQ

1. Where are the exported files stored?

All exported files are stored in the /wp-content/uploads/wp-markdown-exports/ directory on the server. You can download them directly from the export page. Remember to clean up the folder after downloading.

2. Can I export only specific posts?

No, but you can filter posts by category and date range before exporting.

3. Can the plugin handle images?

Yes, the plugin can download all the images used in your posts and include them in a separate ZIP package. If you check the option to export images, the image URLs in the Markdown files will be updated to point to local images. If you don’t check it, they will keep their original URLs, meaning they will be read from your blog.

4. What about custom post types?

The current version focuses on standard WordPress posts. Support for custom post types may be added in future versions.

5. Is the ZIP extension required?

Yes, the PHP ZIP extension is required to create downloadable ZIP packages.

6. Why are some formats not converted correctly?

When I was pair programming with AI, I only used blog posts from my own site for testing, so it may not include some complex styles in the WordPress editor. If you find such issues, you can raise an Issue on Github or leave a message below this blog post, and I will add it in subsequent updates. If you need it urgently, I still recommend using the more mature wordpress-export-to-markdown to operate.

7. How did you direct AI to make this plugin without writing a single line of code?

Please see this article I summarized previously: 《Experiences of AI Productivity by Comment Corpse

评论尸 Avatar

如果你觉得本文有信息增量,请:

喜欢作者

 

精选评论