• I’m building a new theme from the ground up. I’m trying to get post pagination to work using the <!--nextpage--> tag. I have also placed wp_link_pages(); in my single.php file. When I go to the post it shows the Page: 1 2 in the correct place. However, when I click on the link for page 2, the page is blank. When I look at the source, it shows a minimal header and clips off right after the title. In fact it has <title>some title without the ending </title>; everything else is missing, no body or ending html tags.

    Also, I have created a very minimal theme following a Lynda.com tutorial and it’s not working in that theme either. However, if I switchover to either the twentytwelve or twentythirteen theme, it works.

    Looking at both of these themes though show that they don’t directly use the wp_link_pages() function. The have their own function using next and previous link functions.

    Thank you,
    Travis

Viewing 2 replies - 1 through 2 (of 2 total)
  • When I look at the source, it shows a minimal header and clips off right after the title. In fact it has <title>some title without the ending </title>

    what is the code in header.php for the meta title tag?
    or are you using a seo plugin for that?

    Thread Starter ttroutindy

    (@ttroutindy)

    Found my problem! ?? Thank you

    The problem was in the title code

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post pagination in new theme’ is closed to new replies.