Get terms on content
get_content_termsRetrieve all taxonomy terms for a WordPress content item, grouped by taxonomy and returned as full term objects instead of bare IDs. Specify content_id to inspect posts or custom content types.
Instructions
Get every taxonomy term assigned to one content item, grouped by taxonomy and resolved to full term objects rather than bare IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Content type of that ID. | post |
| 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. | |
| content_id | Yes | The content item to inspect. |