[wp-trac] [WordPress Trac] #43685: wp post meta missing options

WordPress Trac noreply at wordpress.org
Tue Apr 3 20:47:27 UTC 2018


#43685: wp post meta missing options
----------------------------+-----------------------------
 Reporter:  apb1963         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  4.9.4
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 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

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43685>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list