Creating a custom gallery by pulling images from post galleries
-
I have a family site where several people will create vacation posts. For example, a museum visit would be a single post with multiple pictures or a gallery. On the main page people will primarily find these by looking/filtering through the images in those posts. I want to create an experience similar to this: [ redundant link removed ]
/FilterableProductGrid/ but with these photos. I don’t want to use a plug in for this, I want to make it myself.
It looks like the get_post_galleries_images function is meant for just this sort of thing, but I can’t get it to pull up any image source uri.<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); $galleries = get_post_galleries_images( the_id() ); foreach($galleries as $image) { echo $result, '<br>'; } ?>
What am I doing wrong? Should I be taking a different approach (again, I don’t want to use a plugin. I want users to easily be able to create posts and attach images via the WP app).
Thanks for your help!!!The page I need help with: [log in to see the link]
- The topic ‘Creating a custom gallery by pulling images from post galleries’ is closed to new replies.