Wordpress Category

What are you trying to achieve?

I am creating a scenario to automate posting my blogs on Wordpress. I am able to pass the content and title but facing difficulty with category mapping.

How can I map Categories directly from the google doc (where I am creating content) to Wordpress create a post module? In other words capture all the already created categories and then pass the applicable ones for each post.

Steps taken so far

I have created the basic scenario but I am not able to pass the Category value from my Google Doc to the Map Category section of Wordpress create a post module.

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.