Pulling mulitiple items from raindrop.io into a single wordpress post

I’m pulling multiple items from raindrop want to combine them into a single WordPress post.
I want the post to end up something like this

{{ $json.note }}

{{ $json.link }}


{{ $json.tags }}

{{ $json.note }}

{{ $json.link }}


{{ $json.tags }}

{{ $json.note }}

{{ $json.link }}


{{ $json.tags }}

This is my first workflow, I think I need to use a merge but can’t figure out how to repeat the attributes vs combining them.

Thank you

Information on your n8n setup

  • n8n version: 1.89.2
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): railway
  • Operating system: railway

I’ve made progress, I added an aggregate node and that looks like it pulled the items into an array. Now I need to understand how to loop through the array and display the data in the single post.

Hi @jayb Welcome to n8n :n8n: community :tada:

The first attached workflow is fine, it retrieves the required bookmarks and outputs them as X items. Then, for each of these items, the WordPress node will be executed. You don’t need to worry about the loop; it is handled by n8n’s design.

In your second workflow, however, you are aggregating all the output items from the bookmarks into a single item and passing that to the WordPress node, which I believe is not what you’re trying to achieve…

The first workflow creates a separate WordPress post for each bookmark.
I’m trying to grab all bookmarks created in a week and create a list of the bookmarks on a single post.

Thanks, JayB

Hi @jayb

Hmm, there is no simple solution that comes to mind right now, so I would use the Code node for this task to handle the appending and creation of the final list, and then pass the output to the WordPress node.

Here is a sample workflow, feel free to edit it to suit your needs.

The code was written with the help of AI, so you can also ask any AI to modify it further if needed.

The output for this will look like this:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.