abstractpurity
Forum Replies Created
-
Forum: Plugins
In reply to: [Easy Image Gallery] Custom Site – Only Most Recent Gallery ShowingDONE!! 😀
Ok, I changed one line in your code to get it detecting the current post ID and allowing for multiple galleries on the one page
I changed line 332 of template-functions.php from:
$rel = easy_image_gallery_count_images() > 1 ? ‘rel=”‘. $lightbox .'[group]”‘ : ‘rel=”‘. $lightbox .'”‘;
to:
$rel = easy_image_gallery_count_images() > 1 ? ‘rel=”‘. $lightbox .'[‘.$post->ID.’]”‘ : ‘rel=”‘. $lightbox .'”‘;
Result!!!
Forum: Plugins
In reply to: [Easy Image Gallery] Custom Site – Only Most Recent Gallery ShowingOK, I have figured that the get_posts command when looped as follows doesn’t update the global $post variable – unless I do it explicitly on each iteration. This is allowing for multiple galleries to appear without changing your code.
Where it gets more hairy is that there is no way to differentiate between the different galleries so that they appear in separate prettyphoto boxes rather than all as one big gallery.
Hatchet job begins!
$WPPosts = get_posts($WPConditions);
foreach ($WPPosts as $WPPost) : start_wp();
$post = $WPPost;
endforeach;Forum: Plugins
In reply to: [Easy Image Gallery] Custom Site – Only Most Recent Gallery Showingcheers – i’m looking at it now. I might be doing a bit of a hatchet job on it, but i’ll throw back my results to you if there’s any reusable code you can use 🙂
Forum: Plugins
In reply to: [Easy Image Gallery] Custom Site – Only Most Recent Gallery Showingcould you point me in the right direction to add it into the code myself for my own use? ie where abouts I can find the command which actually finds and displays the gallery
Forum: Plugins
In reply to: [Easy Image Gallery] Custom Site – Only Most Recent Gallery Showingok that’s helpful in regards to the js stuff, but i’m still left a bit lost as to why it is only displaying the msot recent gallery – can any of your functions be run while inputting the Post ID to make sure the correct gallery is pulled out?