Title: Custom Post + Attachments
Last modified: December 27, 2019

---

# Custom Post + Attachments

 *  [hshah](https://wordpress.org/support/users/hshah/)
 * (@hshah)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/custom-post-attachments/)
 * I’ve done the initial part with a Post-Based Custom Query like below, which shows
   all the posts my members have created.
    `post_type=user_photos&post_status=publish`
 * Since these posts are effectively albums, they have one or more attachments associated
   with them.
 * When I click on each one, I would like to load a LightBox with the attachments
   associated with each post, rather than showing the Featured Image for each of
   the `user_posts`.
 * Is this something that is actually possible with this plugin?

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/custom-post-attachments/#post-12307815)
 * Hi.
 * I don’t think it is possible without custom code.
 *  Thread Starter [hshah](https://wordpress.org/support/users/hshah/)
 * (@hshah)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/custom-post-attachments/#post-12315477)
 * Hi [@nko](https://wordpress.org/support/users/nko/),
 * I know how to fetch all the attachment post_ids so am basically asking if it’s
   possible to achieve what I want to do with the Visual Portfolio plugin?
 * Are there any hooks / filters that I could use or templates that I could modify?
 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/custom-post-attachments/#post-12355410)
 * Hi.
 * You will need to add your own js to open the popup gallery with your own images.
 * Your images you may add by customizing templates [https://visualportfolio.co/documentation/developers/changing-default-templates-and-styles/](https://visualportfolio.co/documentation/developers/changing-default-templates-and-styles/)
 * I understand, that there is not so easy to read all plugin code, but this is 
   the best way to understand it and add customizations. [https://github.com/nk-o/visual-portfolio](https://github.com/nk-o/visual-portfolio)
 * Regards, nK.
 *  Plugin Author [nK](https://wordpress.org/support/users/nko/)
 * (@nko)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/custom-post-attachments/#post-12355459)
 * p.s. if you need, all available filters you can find here – [https://visualportfolio.co/documentation/developers/wordpress-filters/](https://visualportfolio.co/documentation/developers/wordpress-filters/)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom Post + Attachments’ is closed to new replies.

 * ![](https://ps.w.org/visual-portfolio/assets/icon-256x256.png?rev=2389881)
 * [Visual Portfolio, Photo Gallery & Post Grid](https://wordpress.org/plugins/visual-portfolio/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visual-portfolio/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visual-portfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/visual-portfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visual-portfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visual-portfolio/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [nK](https://wordpress.org/support/users/nko/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/custom-post-attachments/#post-12355459)
 * Status: not resolved