#43685 closed defect (bug) (invalid)
wp post meta missing options
| Reported by: | apb1963 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description (last modified by )
Not sure if this is the right place, however...
The following command needs an option that eliminates the ASCII graphics, such as a --porcelain option, and/or --field option (singular). Only --fields (plural) is valid and brings the graphics with it. --format=ids is also missing/broken.
In short, in the following example, I need the output of the wp post meta list to be "168", without quotes - nothing more, nothing less.
wp post meta list 203 --keys=_thumbnail_id --field=meta_value Error: Parameter errors: unknown --field parameter Did you mean '--fields'? wp post meta list 203 --keys=_thumbnail_id --fields=meta_value +------------+ | meta_value | +------------+ | 168 | +------------+ wp post meta list 203 --keys=_thumbnail_id --fields=meta_value --format=ids PHP Catchable fatal error: Object of class stdClass could not be converted to string in phar:///data/local/bin/wp/php/WP_CLI/Formatter.php on line 139 Catchable fatal error: Object of class stdClass could not be converted to string in phar:///data/local/bin/wp/php/WP_CLI/Formatter.php on line 139
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hello @apb1963, welcome to WordPress Trac!
This Trac is used for enhancements and bug reporting for the WordPress core software. For WP-CLI please take a look at http://wp-cli.org/#support. Thanks!