When trying to make a post in WordPress and I came across the following problem: it returns the existing posts as if it were doing a get all and does not post
The same behavior happens with update
Tested with 0.236.3 and 1.4.1
When trying to make a post in WordPress and I came across the following problem: it returns the existing posts as if it were doing a get all and does not post
The same behavior happens with update
Tested with 0.236.3 and 1.4.1
Hi @Claudio_Balbino, I am very sorry you’re having trouble. I recently tested posting on WordPress through n8n and this worked fine:
Following your message I have re-tried running this very workflow using n[email protected], but am only seeing data from the new post as expected:
Is there a chance you are using some plugin (or perhaps a caching layer) that would cause your response to look any different? Perhaps you can share enough additional information on your setup for me to reproduce the problem?
Hi @MutedJam
It had no plugin, this wordpress was installed just to do tests with n8n.
I installed a new wordpress and the behavior is the same. When I try to create a post it returns the existing ones and does not create a new post
Follow print when an instance with version 0.236.2
Can you confirm how exactly you have set up your Wordpress instance please? For reference, I was testing the below docker compose setup:
services:
n8n:
image: n8nio/n8n:1.4.1
restart: unless-stopped
ports:
- 5678:5678
volumes:
- ./n8n_data:/home/node/.n8n
mysql:
image: mysql:latest
restart: unless-stopped
ports:
- 3306:3306
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=1
- MYSQL_DATABASE=wordpress
- MYSQL_USER=wordpress
- MYSQL_PASSWORD=wordpress
volumes:
- ./mysql_data:/var/lib/mysql
wordpress:
image: wordpress:latest
restart: unless-stopped
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
WP_ENVIRONMENT_TYPE: development
volumes:
- ./wordpress_data:/var/www/html