Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sylviajane

    (@sylviajane)

    This kinda works… but it lays out all images and when I try include=”1″ it breaks. ??

    <?php
    $gallery_shortcode = ‘[gallery id="' . intval( $post->post_parent ) . '"]‘;
    print apply_filters( ‘the_content’, $gallery_shortcode );
    ?>

    Thread Starter sylviajane

    (@sylviajane)

    Good to know. I tried this, too. In fact, it’s live right now because I am trying to figure out how to write the code to pull the first image of each pages gallery.

    Do you know how to do that?

Viewing 2 replies - 1 through 2 (of 2 total)