Create Tag
wordpress.create_tag
ActionBusiness appsconnection required
Calls the WordPress API with the connection's credentials.
Create a post tag and return its id, which is what a post's tags field expects.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Username & password
- Providers
- WordPress
- Secret shape
- {"username": "…", "password": "… the application password …"}
- Config it needs
- site_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
name Display name of the tag. | string | Yes | — | — | — |
description Description shown on the tag archive. | string | No | — | — | — |
slug URL slug; WordPress derives one from the name when empty. | string | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id Term id — pass this in a post's categories or tags. | number | — |
name Display name of the term. | string | — |
slug URL slug of the term. | string | — |
taxonomy Taxonomy the term belongs to (category or post_tag). | string | — |
count How many published posts use the term. | number | — |
link Public archive URL for the term. | string | — |
{
"count": 0,
"id": 0,
"link": "",
"name": "",
"slug": "",
"taxonomy": ""
}Notes
- POST /wp/v2/tags. Tags have no parent — the post_tag taxonomy is flat.
See Create Tag run in a workflow.
In a technical demo we add the WordPress connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.