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

  1. simplethemes
    Posted 6 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
    Posted 6 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.

Topic Closed

This topic has been closed to new replies.

About this Topic