Title: acf gallery using multiple posts
Last modified: June 16, 2022

---

# acf gallery using multiple posts

 *  [rudtek2](https://wordpress.org/support/users/rudtek2/)
 * (@rudtek2)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/acf-gallery-using-multiple-posts/)
 * I’m trying to post the gallery of a post type on a second post type (of different
   name). I have a post type called products. I want to show installation photos
   from the post type installations. I will have multiple installation galleries
   that all are related to the same product. when I use this code:
 * `[ajax_load_more acf="true" acf_post_id="16053" acf_field_type="gallery" acf_field_name
   ="image_gallery"]`
 * I am able to get the gallery showing for that specific page.
 * However if I try to add a second post ID into the shortcode:
 * `[ajax_load_more acf="true" acf_post_id="16053, 16027" acf_field_type="gallery"
   acf_field_name="image_gallery"]`
 * Nothing gets displayed (yes both ids pull photos separately). Is there a way 
   to pull the ACF galleries from 2 separate (install) posts?
 * I tried this too (changing acf_post_id to post__in) but got no results at all.
 * `[ajax_load_more acf="true" post__in="16053" acf_field_type="gallery" acf_field_name
   ="image_gallery"]`

The topic ‘acf gallery using multiple posts’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rudtek2](https://wordpress.org/support/users/rudtek2/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/acf-gallery-using-multiple-posts/)
 * Status: not a support question