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


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?

  • Is origin and season the correct name for the taxonomy and is it linked to your post type? I just tried wp post list --post_type=product --product_cat=Foo (Foo being a product category) and it worked.
    – kero
    Feb 12, 2021 at 16:52


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.