[WordPress] Posting to WordPress with Category or Tags does not work

I’m using the OpenAI and WordPress modules to tag and categorize posts. I can download the list of tags and categories from WordPress, and I can ask OpenAI to categorize the post.

What is the error message (if any)?
When I use {{ $json.message.content }} to update the post I get the following error
Screenshot 2023-06-01 at 10.43.29 AM

Please share your workflow

Information on your n8n setup

  • n8n 0.228.2:
  • Database MySQL:
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker):
  • Operating system: Linux \ Unraid

Hey @rainmanjam,

Welcome to the community :cake:

The error you see on the side is to be expected if you are not using one of the pre-select options from the dropdown. This is probably something we should fix in the future as it is confusing.

Looking at how it works you will need to use the category id from an expression not the name, This would normally be a number.

Fair enough. Is there a way in N8N I can transform the response from a name to an ID number?

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