Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

simple-csv-export

Readme: Export posts from WordPress to CSV files

=== Simple CSV Exporter ===
Contributors: ryanshoover
Tags: csv, export
Requires at least: 4.0
Tested up to: 5.1
Requires PHP: 5.3
Stable tag: trunk
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html

Export posts from WordPress to CSV files

== Description ==
Export any post type to a CSV file.

The CSV file contains
- Basic post information
- Author's name
- Link to the featured image
- All post meta values
- All terms

To filter the results, go to the *Posts Table* page in the Dashboard and filter the results using WordPress's standard dropdowns. You'll export only the posts that would show in the table.


== Frequently Asked Questions ==
= How do I filter the results? =

Just filter the posts that show in the Posts Table. The Export button will use the same filters.

= Can I export other post types? =

Absolutely! You should be able to export any post type in the Dashboard. 

Please note that WooCommerce products, WooCommerce orders, and post types that don't follow WordPress's standard conventions won't export all their data.

== Screenshots ==
1. Export button
2. CSV output