Display multiple attachments

0
0

Hello!

I need to display all attached to a particular post files. If I use Get attachment action, it works fine and returns list of attached files. I created a workflow to display, let’s say 3 files. But each post has different number of attached files and if some post has only one attached file, the workflow generates error messages. I need to display all attached files without error messages.

  • You must to post comments
0
0

You heed to use Iterate next action to iterate over the list of files: http://jetflow.io/automate/workflow-actions/iterate-next/.

Put Iterate next action before Display it action and use {PREVIOUS} pattern as single file information list in it. Like {PREVIOUS[post_title]} for the name of a file.

  • bernardo7
    Thanks. That works only if I don’t use content filter with Hook up trigger. If I create a filter I need to return some value instead displaying it with Display it action. If I use that action with any filter, generated content is located above the post content, not bellow.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.