Looper - Dynamic display of post attachments

Hello!

I am curious to know if it is possible to create a Layout for Portfolio Items that contains a Row that dynamically loads Columns with an Image element for all image attachments for the post. (e.g. create a gallery that loads all attached images).

I have not found any documentation on this, but I have created a test layout. I assume the Looper provider may require a custom function.

Thanks,
Chris

Hi Chris,

Thanks for reaching out.
To get all the attachments associated with a single post using the Looper, you need to create a Custom Looper function. I would suggest you go through the following article on how you can get the attachments by the Post ID, which may help you on this.


If you are not proficient in this, I would suggest you hire a developer who can assist you or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support.

Thanks

Thank you - this is all the info I needed!

Hi Chris,

Glad that we are able to help you.

Thanks

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