GeoDirectory SupportShow all photos uploaded – GeoDirectory Support https://wpgeodirectory.com/support/topic/show-all-photos-uploaded/feed Fri, 02 Jan 2026 04:51:58 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/show-all-photos-uploaded/#post-46192 <![CDATA[Show all photos uploaded]]> https://wpgeodirectory.com/support/topic/show-all-photos-uploaded/#post-46192 Mon, 20 Jul 2015 07:43:41 +0000 magnaromagna 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

]]>
https://wpgeodirectory.com/support/topic/show-all-photos-uploaded/#post-46271 <![CDATA[Reply To: Show all photos uploaded]]> https://wpgeodirectory.com/support/topic/show-all-photos-uploaded/#post-46271 Mon, 20 Jul 2015 18:33:27 +0000 Paolo

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/show-all-photos-uploaded/#post-46332 <![CDATA[Reply To: Show all photos uploaded]]> https://wpgeodirectory.com/support/topic/show-all-photos-uploaded/#post-46332 Tue, 21 Jul 2015 06:47:01 +0000 magnaromagna

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/show-all-photos-uploaded/#post-46371 <![CDATA[Reply To: Show all photos uploaded]]> https://wpgeodirectory.com/support/topic/show-all-photos-uploaded/#post-46371 Tue, 21 Jul 2015 14:38:41 +0000 Paolo

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>