Getting IDs from array and inputting into Tag field

Hi,
I’m trying to get the ID from the array aggregator and input it into the tag file when creating a post. I have also used API wp. Nothing seems to work, and I have looked and tried all the previous suggestions here.

Tried this suggestion: Hi @seldomstatic To solve your issue, please enable the WordPress tag field and check the format, It only work with the actual field format. If it only contains id please use map function {{map(14.array; “id”)}} .

Here are the screen shots and any help appreciated.



Thanks for the help.
Ray

Can you specify your issue? Are you having issues extracting the ids or are you getting an error from your mapping being incorrect?

Hi,
I’m getting both issues. Here is my setup, and I have tried many different ways, but I either get the error, not an integer when I create a post, or tags empty when I look in the API call. I have been working on this for two days and have searched and tried other people’s methods, but nothing works. So any help is truly appreciated on this.
Thank you,
Ray





What are the inputs and outputs of the WordPress modules?

L

Hi L,

Here is the wp input and output
create a post input - output.txt (419 Bytes)
Make an API call.txt (468 Bytes)

Thanks,
L

In your original post, the format of the tags seem to be OK.

In the bundle you provide, the format is incorrect. It’s a string consisting of:

“1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,”

Instead of being an array of numbers. So, if you get back to the array of numbers like your first post, that should fix it. I think removing the quotes around “310. id” should do it.

In case you didn’t see it, someone else had a similar problem and it turned out that the easiest way to do what you,re trying to do is to edit a post (which might be what your second call is doing, but jsu tin case):

Unfortunately I don’t have a WP setup I can test but I will try later this week if you haven’t ofound a solution. I’m also planning to write something that does that. Not sure if it will be with Make or a standalone app, though.

L

1 Like

Hi L,
Thanks for taking a look; I appreciate it. I have tried lots of examples others have done that worked for them, but I’ve had no success, even the one post you sent. I’ve done the exact same setup and still don’t get the tags. I have researched and tried many different setups in the past 3-4 days and can’t solve it.

Thanks again,
Ray

Hmmm… would you be willing to share your scenario. Export it and share the JSON bundle, either here or you can send it privately to me if you don,t want to share it publicly. Normally there should be nothing personal exported, but you never know.

L

Hi L,
I sent the blueprint to you gmail account.
Thanks again,
Ray