list-categories
Retrieve and filter WordPress site categories by ID, parent, slug, or search term. Manage pagination, sorting, and visibility options programmatically for efficient category management.
Instructions
Get a list of categories with filtering options
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context | No | Scope under which the request is made | view |
exclude | No | Ensure result set excludes specific IDs | |
hideEmpty | No | Whether to hide terms not assigned to any posts | |
include | No | Limit result set to specific IDs | |
order | No | Order sort attribute ascending or descending | asc |
orderby | No | Sort collection by term attribute | name |
page | No | Current page of the collection | |
parent | No | Limit result set to terms assigned to a specific parent | |
password | Yes | WordPress application password | |
perPage | No | Maximum number of items to be returned | |
post | No | Limit result set to terms assigned to a specific post | |
search | No | Limit results to those matching a string | |
siteUrl | Yes | WordPress site URL | |
slug | No | Limit result set to terms with one or more specific slugs | |
username | Yes | WordPress username |