Open lukecav opened 4 years ago
How would WP-CLI know what column or filed to use in the CSV/JSON?
Also, I know that this has technical limits depending on the shell you're running it in, but you can already do something similar with:
wp export --post__in=$(cat list-of-ids.txt)
@schlessera
The first column in the CSV would contain the list of the post IDs.
This would be super useful!
If you needed to be able to export a large number of posts by ID it would be very useful to be able to define a path containing a CSV or JSON file which contained the post IDs when running the
wp export
command.Example
wp export --post__in_dir=/tmp/post-ids.csv