Is it possible to get a specific Gallery ID inserted to a post in wordpress 3.5? I want to load gallery from post using Ajax. I use shortcode to do it. But when I use it this way:
echo do_shortcode('.'"]');
I get all images attached to the post with $_POST[‘postid’] and not images from the gallery which is inserted to that post.
In single.php i put this code, from this link (thank you Wyck) https://stackoverflow.com/questions/14277794/wordpress-3-5-own-gallery-with-included-images-doesnt-work
Now I can use gallery shortcode [gallery ids=" id's from $array_id here "]
The plain, old [gallery] should still work here.