Support » Fixing WordPress » How to insert parent post gallery into attachment page

  • ruibo

    (@ruibo)


    The closest I’ve got so far is
    <?php echo do_shortcode('[gallery id="<?php the_ID($post->post_parent); ?>"]'); ?>

    instead of actually grabbing just the gallery from the parent post, its grabbing every img instead.

  • The topic ‘How to insert parent post gallery into attachment page’ is closed to new replies.