With the help of wp post list command, you can list the post, page, and custom post types.

With the help of wp post list command you can:

  • List all post
  • List all pages
  • List all custom post types
  • List all post IDs
  • List all page ID, page publish date
  • etc.

Let’s see how to use the wp post list command.

Syntax Syntax

Below is the syntax of the wp post delete command:

wp post list [--<field>=<value>] [--field=<field>] [--fields=<fields>] [--format=<format>]

NOTE: Here the characters are used for:

  • <> – Means this is a required parameter.
  • [] – Means its optional. Not required.

Top ↑

Usage Usage

Simply use the command:

wp post list

Leave a Reply