Wordpress string parameter issue from text parser

Hi,

I’m having trouble taking parsed text to Airtable fields and ultimately to WordPress. I’m able to parse the text correctly and send it over to its field in Airtable, but I’m unable to format the TAGS and CATEGORIES sections to an excepted parameter.

Here’s the parsed text:

[CATEGORIES]Finance,Commodities,Global Trade[/CATEGORIES]

[TAGS]cocoa,Ghana,commodities,trading,supplychain,chocolate

blueprint (2).json (170.4 KB)

Please help!

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

Thanks so much! This worked out perfectly!

However, the posts aren’t reflecting the categories or tags after adding those steps.

I see that the output separates them and creates IDs for all new ones, but when using the {{map(57.array; "id")}} text provided, my posts show up with a dash for categories and tags on Wordpress instead of the actual tags.
blueprint (3).json (252.3 KB)

I’ve seen in another thread that this may be a bug or issue with multiple tags carrying over.

Thanks again for your help!