Skip to main content
CMSquestions

How to Export Content from WordPress

BeginnerQuick Answer

TL;DR

WordPress offers four export methods: the built-in XML export (Tools → Export), the WP REST API for programmatic access, WP-CLI for command-line exports, and direct database queries for complete data extraction. The built-in export works for basic posts and pages, but for custom post types, ACF fields, and WooCommerce data, the REST API or direct database access gives you more control and complete data.

Key Takeaways

  • Built-in XML export (Tools → Export) covers basic posts, pages, and media references — not custom fields
  • WP REST API provides programmatic access to all content types including custom post types and ACF fields
  • WP-CLI is the fastest option for scripted, repeatable exports from the command line
  • Direct database access gives the most complete data but requires MySQL knowledge