How to get all posts related to a term with WP-CLI?

I want to get all french brands.

When I try with post type brand, it works (for example it returns 1000 results).

wp post list --post_type=brand

If I add a parameter: taxonomy term (--<taxonomy>=term_slug)

wp post list --post_type=brand --origin=france

or

wp post list --post_type=brand --season=winter

It still returns same quantity of results (1000 results).

I can’t read it in official documentation but this closed issue says it’s possible.

Is it possible… or was it possible before and not now?

0

Leave a Comment