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.
- bernardo7 asked 8 years ago
- You must login to post comments
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.
- Gregory answered 8 years ago
- last edited 8 years ago
-
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 login to post comments
Please login first to submit.