Conditional Tag for First page of a Single.php (3 posts)

  1. 82design
    Posted 4 years ago #

    Is there is a way to add a conditional tag for adding the feature image to the first page of a single and not on any additional pages when using pagination?

  2. 82design
    Posted 4 years ago #

    Why do I never get help?

    I may need to clarify:

    When viewing a post (page: single.php, not on home, or category) is their a conditional tag (if statement) that will display the featured image or custom field only on the first page of the single page view of the post.

    So with post that are broken up with multiple pages, page two of the single view post and beyond will not show the featured image or custom field?

    PLEASE any suggestions or documentation would be Great help!

  3. alchymyth
    Forum Moderator
    Posted 4 years ago #

    to use in single.php:

    <?php if( $page == 1 ) {
    /* do something */
    } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic