Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supplying wp term $args parameter as array returns only last member of that array #3360

Closed
bynicolas opened this issue Aug 30, 2016 · 1 comment

Comments

@bynicolas
Copy link

Maybe I'm doing it wrong but when I try to retrieve a list of post_tags filtered by slug I only get the last member of my array or an empty set, depending on the syntax I tested. wp term --<field>=<value> supports the args of get_terms() right? I want to filter by slug which is either a string or an array.

this returns the last member, carrot
wp term list post_tag --slug=[{"apple","banana","carrot"}]

this returns an empty set (with and without double quotes)
wp term list post_tag --slug=[apple,banana,carrot]

Am I supplying the array with wrong syntax or is this not supported?

@danielbachhuber
Copy link
Member

Am I supplying the array with wrong syntax or is this not supported?

Passing multiple values to --slug=<slug> isn't supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants