WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] NextPage tag gives unwanted post pagination on home page. (3 posts)

  1. donal017
    Member
    Posted 1 year ago #

    Hi all:
    I'm building a child theme on twenty-eleven on a private test server.
    I'm using <!--nextpage--> to paginate long posts, and it works beautifully on my single post pages, but my problem is that it also shows the pagination on the home page excerpt for the paginate post, which doesn't make much sense. This happens even though the <!--nextpage--> tag appears later than the <!--more--> tag in my post.

    Any ideas how to disable the post pagination on my home page while retaining on my single-post page?

    Many thanks,
    Donal

  2. vtxyzzy
    Member
    Posted 1 year ago #

    One possibility would be to create a filter on the_content to strip out the <!--nextpage--> tags if on the home page.

  3. donal017
    Member
    Posted 1 year ago #

    Thanks vtxyzzy.
    Found a solution using a conditional statement here...
    http://stackoverflow.com/questions/14105270/wordpress-nextpage-tag-gives-unwanted-post-pagination-on-home-page

    Regards,
    Donal

Topic Closed

This topic has been closed to new replies.

About this Topic