Forums

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

  1. donal017
    Member
    Posted 4 months 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 4 months 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 4 months 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

Reply

You must log in to post.

About this Topic