WordPress.org

Ready to get started?Download WordPress

Forums

How to insert parent post gallery into attachment page (1 post)

  1. ruibo
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic