Skip to content

WordPress - Get Categories and Tags

This module allows querying the categories and tags of a WordPress site. It is useful for getting the IDs needed when creating or updating posts.

FieldDescriptionExample
urlWordPress site base URLhttps://my-site.com
usernameWordPress usernameadmin
application_passwordApplication password generated in WordPressxxxx xxxx xxxx xxxx
FieldTypeRequiredDescription
credentials_idcredentialsYesWordPress credential
taxonomyselectNoCategories or Tags. Default: Categories
term_idtextNoSpecific ID. If empty, lists all
searchtextNoSearch term
per_pagenumberNoResults per query (1-100). Default: 100
hide_emptybooleanNoHide categories without posts
{
"success": true,
"terms": [
{
"id": 3,
"name": "Technology",
"slug": "technology",
"description": "Technology articles",
"count": 15,
"parent": 0
}
],
"taxonomy": "categories",
"total": 8
}
{}
{
"search": "technology"
}
{
"taxonomy": "tags",
"hide_empty": true
}
  • Category/tag IDs are used in the Create/Update Post nodes.
  • Categories have hierarchy (parent field), tags do not.
  • By default returns up to 100 results to facilitate selection.
  • WordpressCreatePost - Create post assigning categories and tags
  • WordpressUpdatePost - Update post categories
  • WordpressGetPosts - Get posts filtered by category