WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] Get the current page number (3 posts)

  1. rizkysyazuli
    Member
    Posted 3 years ago #

    how do i check which page am i currently on? i have a content that i only want to show on the first page. it's a static introduction content and it's not part of the loop.

    any help is appreciated. thx..

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    i have a content that i only want to show on the first page.

    try to use the contitional tag:
    is_paged()
    http://codex.wordpress.org/Function_Reference/is_paged

    for instance:
    <?php if(!is_paged()) { /*show content*/ } ?>

  3. rizkysyazuli
    Member
    Posted 3 years ago #

    awesome.. it works! i didn't think of browsing the function reference since this is a plugin :P

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic