Hi,
I don’t know, but is there a way to show all pictures uploaded for the current listing? Should be helpful show all pictures uploaded by all users in a gallery. Is it possible to add a function to exact all upload photo (like the following) and call it to show all pictures? Like TripAdvisor, that shows in a gallery all photos (without having to scroll every review and click on “more”)
Example of function
function display_images_in_list($size = thumbnail) {
if($images = get_posts(array(
'post_parent' => get_the_ID(),
'post_type' => 'attachment',
'numberposts' => -1, // show all
'post_status' => null,
'post_mime_type' => 'image',
'orderby' => 'menu_order',
'order' => 'ASC',
))) {
foreach($images as $image) {
$attimg = wp_get_attachment_image($image->ID,$size);
echo $attimg;
}
}
}
Thanks