WordPress blog to MDX
Claude Code, run as a terminal agent, pulled every post from the author's WordPress REST API and converted them to local MDX files.
367 posts and 5 pages were migrated to MDX in one afternoon, about 4 hours, versus an estimated 3-5 days by hand.
Overview
How it was set up
Claude Code in the terminal with a high-level goal. Next.js on Vercel, local MDX files in a year-based folder structure, FlexSearch for search.
Worth knowing
The author set direction and reviewed the work. Broken image tags in old posts stalled the build once.
A prompt to start from
Extract all posts from my WordPress REST API, convert them to MDX with proper frontmatter, and save them into a year-based folder structure under [content directory].Written by Agentic Feats from the source. Not the author's exact prompt.
Sources 1
History
- Source published
- 2026-02-01
- Added to Agentic Feats
- 2026-10-13
- Pick
- No
- Markdown copy
- /c/wordpress-blog-to-mdx-claude-code.md
More in coding
68 featsResultA live blog aggregator pulling posts from Dev.to, AWS Community Builders, Bravo LT and RedMonk, built and deployed in a single day.
ResultA live MVP website for the podcast and newsletter went up after about 10 hours of struggling to load it on a custom URL.
ResultWithin one night Devin produced a working unanswered-emails interface using the Gmail API, after the author wrote the authentication code themselves.