WP CLI fails to filter posts by category
-
I am trying to delete over 2000 posts ini a ceratin category.
When I filter for any category
WP post list –category=ID
All the posts are listed and not the ones in the selected category
When I use SQL
SELECT * FROM wp_term_relationships
WHERE term_taxonomy_id = IDI get zero
Yet when I go the wordpress admin posts>categories I can see the list of categories and the number of posts under each and I can filter accordingly.
What could be the problem and how do I fix it so as to delete a massive number of posts in a certain category susing WP CLI
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘WP CLI fails to filter posts by category’ is closed to new replies.