WordPress.org

Ready to get started?Download WordPress

Forums

If a Post is Page Function (8 posts)

  1. FanGathering
    Member
    Posted 7 years ago #

    Is there a code I can use to tell WP that if a post is paged, then show this, but if it isn't then show that?

    I've seen someone mention is_paged() in another thread, but I had no idea how to use it, and couldn't find any other mention of it. :(

  2. Chris_K
    Member
    Posted 7 years ago #

    You'll find is_paged() mentioned at the Conditional_Tags page.

  3. moshu
    Member
    Posted 7 years ago #

    "is_paged" is NOT about ONE post being paged (like with the

    <!--nextpage-->
    tag) - it is about your index or archives when you have more posts than the number set for reading, and the next/prev posts link is present.

  4. FanGathering
    Member
    Posted 7 years ago #

    Thanks for that. It says "This does not refer to a Post or Page whose content has been divided into pages using the <!--nextpage--> QuickTag."

    That's what I meant. My post has been split up using <!--nextpage-->

    Is there a function I can use to tell WP if this has happened?

  5. moshu
    Member
    Posted 7 years ago #

    Is there a function I can use to tell WP if this has happened?

    Not that I know of, although that doesn't mean anything since I am a code illiterate... :)

  6. FanGathering
    Member
    Posted 7 years ago #

    lol - Okay - Thanks :)

  7. Chris_K
    Member
    Posted 7 years ago #

    and apologies, I'm struggling with reading for context. :-p

  8. FanGathering
    Member
    Posted 7 years ago #

    lol - You're apologising for trying to help? Thanks anyway. :P

Topic Closed

This topic has been closed to new replies.

About this Topic