Skip to content

Commit bd4346e

Browse files
authored
Merge pull request #332 from wp-cli/regenerate-readme
2 parents fe8aa9e + 660c0a4 commit bd4346e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,8 +2354,8 @@ Gets a list of posts.
23542354
wp 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

0 commit comments

Comments
 (0)