Connecting automation pipelines directly to WordPress allows you to draft articles programmatically without ever opening the admin dashboard. Here is how I set up n8n to publish draft posts with custom tags and categories.
Authentication: WordPress Application Passwords
Instead of sharing master admin credentials, go to Users > Profile in WordPress, scroll down to Application Passwords, and generate a dedicated token for n8n.
n8n HTTP Request Configuration
{
"parameters": {
"method": "POST",
"url": "https://top.fadah.store/wp-json/wp/v2/posts",
"authentication": "genericCredentialType",
"genericAuthType": "httpBasicAuth",
"sendBody": true,
"bodyParameters": {
"parameters": [
{ "name": "title", "value": "Automated Post Title" },
{ "name": "content", "value": "Post content generated by pipeline.
" },
{ "name": "status", "value": "draft" }
]
}
},
"name": "Create WP Post",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2
}
Always set status = draft so you can perform a quick visual review before hitting publish.