post pagination inside template page set to show specific category
hello I’m having trouble creating a navigation in the posts that are being directed to a page template.
simply does not appear any button to “older posts” as you can see here http://travelcouture.com.br/?page_id=589
I tried to add to my template page the following code – in a wordpress copy that i have installed on my test server:
and at the end of the page
<?php endwhile; // end of the loop. ?> <div class="navigation"> <span class="nav-previous"><?php echo previous_post_link(); ?></span> <span class="nav-next"><?php echo next_post_link(); ?></span>
[Please post code or markup snippets between backticks or use the code button.]
with this code i could bring up the buttons but they link to isolated single post pages and not to a “second page” with a list of several posts.
I read somewhere about instead of using a page template I should use a template category file (do not know how to use it actually) but do not know how to call a template class inside a pages menu – i need a link to this category in my main pages menu.
actually it is already running in the middle of the pages menu – I have the link “Travel tips” which sends to a template page that shows the “Travel” category
– the problem is that this template page with travel category posts dont have pagination – i cant navigate to older posts ..
Anyone know how to make the pagination work properly in my template page
if the best option is to actually create a “template class” and call it in some way on the menu
– How can I solve this problem?
(sorry my english is not so good )
- The topic ‘post pagination inside template page set to show specific category’ is closed to new replies.