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
Describe your use case and the problem you are facing
Post meta can either be unique or non single. This means that the same meta key can be used multiple times in post meta. When using get_post_meta() you can pass if the meta key is single or not.
Unfortunately wp post meta 1 meta_key does not support this. At the moment only the first value is returned.
Describe the solution you'd like
This is caused by the fixed defined parameter in the code:
It would be nice if the third parameter could be either set using the arguments or using a flag. Either wp post meta 1 meta_key false or wp post meta 1 meta_key --is-single=false.
The text was updated successfully, but these errors were encountered:
Hii @danielbachhuber I would like to work on this issue. I think adding a extra flag seems reasonable for this. Default should be false and we show multiple values if we find them.
Feature Request
Describe your use case and the problem you are facing
Post meta can either be unique or non single. This means that the same meta key can be used multiple times in post meta. When using
get_post_meta()
you can pass if the meta key is single or not.Unfortunately
wp post meta 1 meta_key
does not support this. At the moment only the first value is returned.Describe the solution you'd like
This is caused by the fixed defined parameter in the code:
entity-command/src/WP_CLI/CommandWithMeta.php
Line 161 in 6e0e77a
It would be nice if the third parameter could be either set using the arguments or using a flag. Either
wp post meta 1 meta_key false
orwp post meta 1 meta_key --is-single=false
.The text was updated successfully, but these errors were encountered: