Post Type Exporter
A Wordpress plugin to export a list of custom post type entries to a CSV or XLS file. Supports standard and ACF fields.
by Tameroski · github.com/tameroski/post-type-exporter · website
★ 12stars
3forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/tameroski/post-type-exporter/archive/refs/heads/master.zipFrom the readme
Post Type Exporter
Wordpress Plugin for exporting a list of custom post type entries to a CSV or XLS file.
Support default and ACF Fields.
Configuration
Plugin settings can only be changed using filters for the moment.
Post Types
The plugin is only exporting posts by default. You need to use the pteposttypes filter to add / remove post types. Let's say you want to add the export feature to pages and a custom post type with slug my-cpt :
For each post type, array keys represents the fields to export, and array values represents the corresponding column title in the exported file.
Export type
By default, the plugin is exporting xls file. But it is also possible to change this to csv using the pteexporttype filter :
Only csv and xls are supported values for the moment.
Export file name
Export file name can be changed using the pteexportfilename filter :
Other hooks
ptecapability : filter to change the capability needed to display the export form. Default is 'manageoptions'.
ptevaluesseparator : filter to change the separator for ACF multiple values field (like checkboxes, etc.). Default is ', '.