File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2354,8 +2354,8 @@ Gets a list of posts.
23542354wp post list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>]
23552355~~~
23562356
2357- Display posts based on all arguments supported by
2358- [ WP_Query() ] ( https://developer.wordpress.org/reference/classes/wp_query/ ) .
2357+ Display posts based on all arguments supported by [ WP_Query() ] ( https://developer.wordpress.org/reference/classes/wp_query/ ) .
2358+ Only shows post types marked as post by default .
23592359
23602360** OPTIONS**
23612361
@@ -2448,6 +2448,14 @@ These fields are optionally available:
24482448 | 1 | Hello world! | hello-world | 2016-06-01 14:31:12 | publish |
24492449 +----+--------------+-------------+---------------------+-------------+
24502450
2451+ # List given post by a specific author
2452+ $ wp post list --author=2
2453+ +----+-------------------+-------------------+---------------------+-------------+
2454+ | ID | post_title | post_name | post_date | post_status |
2455+ +----+-------------------+-------------------+---------------------+-------------+
2456+ | 14 | New documentation | new-documentation | 2021-06-18 21:05:11 | publish |
2457+ +----+-------------------+-------------------+---------------------+-------------+
2458+
24512459
24522460
24532461### wp post meta
You can’t perform that action at this time.
0 commit comments