WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] how to do is_paged() for posts? (3 posts)

  1. hugree
    Member
    Posted 4 years ago #

    Hi,

    I've been trying to determine if a post is multi-paged using the <!--nextpage--> tag. In general I want to hide something on pages > 1.

    I know is_paged() is used for something else.

    Please help.
    Thanks in advance,
    Greg

  2. MichaelH
    Member
    Posted 4 years ago #

    $page = (get_query_var('page')) ? get_query_var('page') : 1;
    echo 'This is page '. $page;
  3. hugree
    Member
    Posted 4 years ago #

    Thanks!

    Worked like a charm :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags