I don't succeed in publishing two different categories on wordpress

Hi there community! I have a minor problem that is puzzling me a lot. I am having a very simple flow, where from a Gsheet I am creating an article.

In the gsheet there are 4 columns that are called “categories” that should serve to “tick” the right category in wordpress.
Screenshot 2025-03-30 alle 22.35.50

I am using the categories Id in this row and they are the same categories that are on wordpress.
Everytime that I am running the scenario I succeed in “pairing” the categories only if the first row is numbered and the others are blanks. If there are two or more rows numbered (with categories Id) then wordpress is publishing the article without coupling with any category
In the wordpress module I gave the right association, I think.

Could anyone help me? I am getting mad over this.
thank you

Welcome to the Make community!

To do this, you can use the built-in function add

{{ add(array; value1; value2; ...) }}

e.g.: (paste this into the field)

{{ add(emptyarray; 1.categoryA; 1.categoryB; 1.categoryC; 1.categoryD) }}

For more information, the function’s documentation can be found in the Help Centre. You should also complete the tutorials in the Make Academy.

You’ll need to insert the categories as an array of ids.

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.

For more information, see How to deal with WordPress errors

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.

Samliew! it worked PERFECTLY, just adding this → {{ add(emptyarray; 1.categoryA; 1.categoryB; 1.categoryC; 1.categoryD) }} I tried to generate the article and magic happened…three category put in place.

thank you very much

No problem, really glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

Getting Started

Help Centre Basics

Articles & Videos

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.