In this example:
Ajax Load More will infinite scroll a gallery of images that are attached to a specific WordPress post.


The following shortcode was used to create the Attachments example.

[ajax_load_more post_type="attachment" custom_args="post_parent:20011" post_status="inherit" preloaded="true"]

Note: When querying attachments by Post ID you must always define a post_parent ID and set post_status=”inherit” in the shortcode.

The following Repeater Template was used to create the Attachments example.