Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Export Posts to CSV

** by

If this kind of stuff has any value to you, please consider supporting me so I can do more!

Support me on Patreon Support me on via PayPal

Export data for all posts or a category of posts in CSV format with including author name, author user name, publication date, URL (local or remote if syndicated, identification of Feed Wordpress syndicated posts, character count, word count, and link count, and list of outward hypertext link.


Get blog data in a data format for use elsewhere. This plugin was written originally for use on sites that aggregate external posts with the Feed Wordpress plugin, but will equally return data on locally published posts (or mixes thereof)

This plugin adds a Post CSV Export submenu item to the Tools menu. The tool generates an export of blog data in CSV format, for either the entire site, or within a selected category.

The data so far being exported for each post includes:

  • post ID
  • source (either 'local' or 'syndicated')
  • post title
  • publication date and time
  • author name (first and last name from profile)
  • author username
  • blogname (host blog or remote if syndicated post)
  • post character count (string character count after HTML stripped out)
  • post word count (after HTML stripped out)
  • number of links in post (count of </a> tags)
  • list of hyperlink urls (from all <a href="http://*****.****.***">...</a> tags)
  • number of tags
  • list of tags
  • number of comments (if it is a locally published post, syndicated are messy)

There is now a form field to list any post meta (custom field) names, each which will appear as a column in output

Possible additions may include

  • restrict by date range (DONE)
  • Embedded media? (count use of img, object, iframe, what else?)
  • names of commenters (would be just what they put in form)
  • filter results by keyword?? Or is that better done on the analysis side


  1. Upload posts2csv folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Click on the Export to CSV link from the Tools sub menu
  4. Save .csv value
  5. Enjoy your data

Frequently Asked Questions





  • Via request by Aaron Davis, aded option to enter names of post meta keys to pull as column data


  • Fixed issues with date limits.


  • Adding date fields to use before, after, or bracket by date


  • Just got it working!


Wordpress Plugin for Exporting Post Data as CSV



No releases published


No packages published