Skip to main content

Type

For loop type type, here are the query parameters and fields.

Query parameters

  • builtin - If true, will return WordPress default post types. Use false to return only custom post types.
    Type: boolean
  • public - If true, only public post types will be returned.
    Type: boolean
    Default: TRUE

Fields

  • description - Post type description
  • label - Post type label (singular)
  • label_plural - Post type label (plural)
  • name - Post type name/slug