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 [gallery]
to do it. But when I use it this way:
echo do_shortcode('[gallery id="'.$_POST['postid'].'"]');
I get all images attached to the post with $_POST['postid'] and not images from the gallery which is inserted to that post.