wp post term list

List all terms associated with an object.

wp post term list <id> <taxonomy>... [--field=<field>] [--fields=<fields>] [--format=<format>]

Options

<id>

ID for the object.

<taxonomy>...

One or more taxonomies to list.

[--field=<field>]

Prints the value of a single field for each term.

[--fields=<fields>]

Limit the output to specific row fields.

[--format=<format>]

Render output in a particular format. [Default: table]

Options:
  • table
  • csv
  • json
  • yaml
  • count
  • ids

Available Options

These fields will be displayed by default for each term:

  • term_id
  • name
  • slug
  • taxonomy

These fields are optionally available:

  • term_taxonomy_id
  • description
  • term_group
  • parent
  • count