changing the template for Blog pages/pagination
I hope I’m missing something obvious here…
I have a site in progress at http://managebest.net/gpr . This is a site that is primarily a static site advertising a PR business.
The front page and all the “pages” of the site use the page.php template.
I want the “Blog” page, which lists the five most recent blog entries and lets someone go to “Older Entries” and “Newer Entries,” to be in a different template.
Right now, I’m using a blog-page.php template that I created myself that is associated with the page titled Blog (it’s the last item in the navigation at the top of the page), and it does let me include excerpts of the five most recent blog entries.
However, it does not show previous and next links, even with the appropriate (I think) previous and next coding in the template (to wit):
<div class="alignleft"><?php next_posts_link(' Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries') ?></div>
Is there a way to make next_posts_link and previous_posts_link work in a page template? Or should I instead redirect to http://managebest.net/gpr/page/1 , which uses the index.php template and where the navigation seems to be working?
- The topic ‘changing the template for Blog pages/pagination’ is closed to new replies.