Vasco
December 10, 2024, 11:36am
1
I created WordPress tags with Make and then used the module “Search Tags” to fetch their ID.
An “Array Aggregator” was used to aggregate all tag IDs into a single bundle.
Using {{get(map(124.array; “id”); 1)}} for all ten tags, the “Set Multiple Variables” gave me different variables for each tag.
The result:
In the “Create a Post” module, I put those ten variables in the Tag field.
The blog post and the tags are created successfully, but the tags are not assigned to the blog post. It appears empty without showing any error.
I also tried using the method found in the following link to update the blog post using the “Make an API Call” module, but with no success: Updating or posting a Wordpress post with multiple tags created with an Iterator module - #4 by Abhishek
I’m sure missing something here. Any help would be appreciated!
samliew
December 11, 2024, 5:16am
2
Delete module 123, and just paste this in the tags field:
{{ map(124.array; "id") }}
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.
2 Likes
Vasco
December 11, 2024, 12:06pm
3
@samliew thanks a lot! That worked, but to be sure other people use the function correctly, it’s better to remove the speech marks around “id” , otherwise, there’s an error. Here’s the corrected function:
map(123.array;id)
Hello @Vasco
When I try to copy both of the versions into the Set Multiple Variable module See the results.
The version given by @samliew is more appropriate to use instead of given by @Vasco .
Just use copy-paste from Make and Always use code block for the formula.
How to use code blocks
```
{Formula}
```
A more convenient way is to directly copy-paste the syntax from the scenario.
Vasco
December 11, 2024, 1:12pm
5
Hi @dilipborad
Sorry, my mistake. I put the wrong number; it should be 124:
{{ map(124.array; “id”) }}
Also, I didn’t know that putting map(124.array[];id) into code in this forum would transform it to map(123.array;id) , removing the square brackets.
Hello @Vasco ,
As a formatting, this is still not as accurate as @samliew did.
You can copy and paste this first
{{ map(124.array; “id”) }}
and then try this
{{ map(124.array; "id") }}
See the difference in quotes(")
That’s why I always strongly recommend people take this course first.
Hey Makers
Kickstart your learning journey with our Make Academy !
Today we’d like to share a summary of all the available courses. Enroll now, and learn the essential skills to learn automation at your own pace!
Click for basic information about the Make Academy Every certification contains various courses and units.
Each certification aims to upskill Makers with some of the fundamentals of Make.
Make Foundation sets the groundwor…
Also, see this topic about how formatting works in the Make community.
Hey Makers
If you want to create structured community posts, check out our formatting guide.
Headers
# Hello
## Hello
### Hello
####Hello
##### Hello
displayed as:
Hello
Hello
Hello
Hello
Hello
Text
**bold**
This is what bold text is.
*italic*
This is what text in italics looks like.
***Bold and Italic***
A combo of the previous ones.
[s]strikethrough[/s]
Need to cross something out? No problem.
[u]underlined[/u]
How about underlining some important par…
Vasco
December 11, 2024, 4:25pm
7
@dilipborad , thanks for the heads up about the quotes!