You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Maybe I'm doing it wrong but when I try to retrieve a list of
post_tags
filtered byslug
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 ofget_terms()
right? I want to filter by slug which is either astring
or anarray
.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?
The text was updated successfully, but these errors were encountered: