Cant create wordpress post

Describe the problem/error/question

trying to create a wordpress post and this is the output i get; data is not pushing to wordpress even though it says it was successful

What is the error message (if any)?

Please share your workflow

{
“meta”: {
“instanceId”: “1c309e7eb6169ce8b61953f2e06b67a81bada6372878ef80883efd336fff1b9c”
},
“nodes”: [
{
“parameters”: {
“title”: “test”,
“additionalFields”: {
“content”: “test”,
“slug”: “test”,
“status”: “draft”
}
},
“id”: “d7acb8cf-a6a5-4c88-a316-fe3b06825e3d”,
“name”: “Wordpress”,
“type”: “n8n-nodes-base.wordpress”,
“typeVersion”: 1,
“position”: [
300,
-100
],
“credentials”: {
“wordpressApi”: {
“id”: “14”,
“name”: “Wordpress account 2”
}
}
}
],
“connections”: {}
}

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

[
“\n\t<html lang="en-US">\n\t\n\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\n\tLog In ‹ camera central — WordPress\n\t\n\n\n\n\n\n\t\n\t\t<meta name="viewport" content="width=device-width" />\n\t\t\n\t<body class="login no-js login-action-login wp-core-ui locale-en-us">\n\t<script type="text/javascript">\n\t\tdocument.body.className = document.body.className.replace(‘no-js’,‘js’);\n\t\n\t\t<div id="login">\n\t\t

<a href="https://wordpress.org/\”>Powered by WordPress

\n\t\n\t\t<form name="loginform" id="loginform" action="https://.com/wp-login.php" method="post">\n\t\t\t

\n\t\t\t\t<label for="user_login">Username or Email Address\n\t\t\t\t<input type="text" name="log" id="user_login" class="input" value="" size="20" autocapitalize="off" autocomplete="username" />\n\t\t\t

\n\n\t\t\t<div class="user-pass-wrap">\n\t\t\t\t<label for="user_pass">Password\n\t\t\t\t<div class="wp-pwd">\n\t\t\t\t\t<input type="password" name="pwd" id="user_pass" class="input password-input" value="" size="20" autocomplete="current-password" spellcheck="false" />\n\t\t\t\t\t<button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="Show password">\n\t\t\t\t\t\t<span class="dashicons dashicons-visibility" aria-hidden="true">\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t\t<p class="forgetmenot"><input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <label for="rememberme">Remember Me

\n\t\t\t<p class="submit">\n\t\t\t\t<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Log In" />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="redirect_to" value="https://.com/wp-admin/" />\n\t\t\t\t\t\t\t\t\t<input type="hidden" name="testcookie" value="1" />\n\t\t\t

\n\t\t\n\n\t\t\t\t\t<p id="nav">\n\t\t\t\t<a href="https://.com/wp-login.php?action=lostpassword">Lost your password?\t\t\t

\n\t\t\t\t\t<script type="text/javascript">\n\t\t\tfunction wp_attempt_focus() {setTimeout( function() {try {d = document.getElementById( "user_login" );d.focus(); d.select();} catch( er ) {}}, 200);}\nwp_attempt_focus();\nif ( typeof wpOnload === ‘function’ ) { wpOnload() }\t\t\n\t\t\t\t<p id="backtoblog">\n\t\t\t<a href="https://.com/">← Go to central\t\t

\n\t\t\t\n\t\t\t\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t<div class="clear">\n\t\n\t\n\t"
]

Information on your n8n setup

  • n8n version: 0.219.1, w
  • **Database (default: SQLite):**SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • **Operating system:**ubuntu

I have the same problem.

it runs the node successfully, but the information that appears in the output is from the last post, which in this case, because it is a new blog, appears “Hello World” and does not create the post.

I used the community template to test. N8N - Version 0.231.3

Hey @Patrick1 and @Flavio_Pavanelli

Welcome to the n8n community :tada:

I have done a couple of tests and as I guessed the error shown in the screenshot comes from the WordPress instance you are using has a wrong permalink structure.

In order for the WordPress API to work correctly, the WordPress permalinks structure must not be set to Plain. By modifying this parameter in Settings > Permalinks, the Post creation of the WordPress node will work normally.

:wink:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.