Wordpress Categories Status Tags etc

Hi there

I’m quiete new to make, loving it already :slightly_smiling_face:

I created two scenarios to write an article and create a picture and then write a post which is published on a Wordpress webiste. It worked well, then I’ve changed the domain name, adjusted the connection (and verifying connections is fine!) but sometimes I’m getting errors like this:

[400] Invalid parameter(s): categories (error code: rest_invalid_param)
categories: categories[0] is not of type integer.

Weird is that sometimes is working fine, sometimes not. When I go fot the settings I see all categories and can preset one, next time it brings up an error.

Anybody has a hint or is the connection just not as stable as it should be to read out categories, status, tags etc. everytime?

Thanks,
Udo

Welcome to the Make community!

You’ll need to split the categories by comma-space so that it becomes an array.

Then, use an iterator on the array so that you can process each category at a time.

Create new category using the name.

Then, if category exists, there will be an error. Handle the error by searching for the category, and resuming with the existing category ID.

Then, aggregate the category IDs into an array using the Array Aggregator.

You can then insert the array of category IDs into the tag/category field.

Similarly, this works the same way for the Wordpress Tags field.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.