Wp post get (WP-CLI)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

wp post get: Get details about a post.

Voorbeeld:

$ wp post get 51110

+-----------------------+---------------------------------------------+
| Field                 | Value                                       |
+-----------------------+---------------------------------------------+
| ID                    | 51110                                       |
| post_author           | 4                                           |
| post_date             | 2020-05-05 18:13:15                         |
| post_date_gmt         | 2020-05-05 18:13:15                         |
| post_content          |                                             |
| post_title            | Widgets for ABC - Kies je Toepassing        |
| post_excerpt          |                                             |
| post_status           | publish                                     |
| comment_status        | closed                                      |
| ping_status           | closed                                      |
| post_password         |                                             |
| post_name             | widgets-voor-abc-kies-je-apparaat           |
| to_ping               |                                             |
| pinged                |                                             |
| post_modified         | 2021-03-12 13:17:54                         |
| post_modified_gmt     | 2021-03-12 12:17:54                         |
| post_content_filtered |                                             |
| post_parent           | 0                                           |
| guid                  | http://en.s1/?page_id=51110                 |
| menu_order            | 0                                           |
| post_type             | page                                        |
| post_mime_type        |                                             |
| comment_count         | 0                                           |
| nl                    | null                                        |
+-----------------------+---------------------------------------------+

Zie ook