WordPress.org

Ready to get started?Download WordPress

Forums

How to detect WP (nextpage) paginated posts (2 posts)

  1. simplethemes
    Member
    Posted 4 years ago #

    Hi, I've looked everywhere for an answer to this but hopefully I'm just missing the obvious.

    I have some custom heading markup for a theme I'm developing and I'd like to hide the code on subsequent posts that are paginated using the <!--nextpage--> quicktag. Is there anywhere I can query if the page being viewed is a "sub"?

  2. simplethemes
    Member
    Posted 4 years ago #

    I guess I didn't look everywhere. Found the solution right after I posted. Finding if <!--nextpage--> exists. I ended up using $page to get the current page number.
    http://codex.wordpress.org/Function_Reference/get_the_content

Topic Closed

This topic has been closed to new replies.

About this Topic