Post pagination in new theme
-
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 placedwp_link_pages();
in my single.php file. When I go to the post it shows thePage: 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
- The topic ‘Post pagination in new theme’ is closed to new replies.