List taxonomy terms
list_termsList terms from any WordPress taxonomy with search, ordering, hierarchy filtering, and pagination. Works for categories, tags, and custom taxonomies.
Instructions
List terms in any taxonomy with search, ordering, hierarchy filtering and pagination. Works for categories, tags and custom taxonomies alike.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Which page of results to return. | |
| post | No | Only terms assigned to this content ID. | |
| slug | No | Filter by exact slug. | |
| order | No | Sort direction. | asc |
| parent | No | Only direct children of this term ID. Hierarchical taxonomies only. | |
| search | No | Match against term names. | |
| orderby | No | Which field to sort by. | name |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| per_page | No | How many results per page. | |
| taxonomy | No | Taxonomy slug or REST base (category, post_tag/tags, or a custom one). | category |
| hide_empty | No | Skip terms with no content assigned. |