Support » Fixing WordPress » Conditional Tag for First page of a Single.php

  • 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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!

    Michael

    (@alchymyth)

    Forum Moderator

    to use in single.php:

    <?php if( $page == 1 ) {
    /* do something */
    } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional Tag for First page of a Single.php’ is closed to new replies.