- This topic is empty.
- The forum ‘Back End’ is closed to new topics and replies.
I have problems with navigation on my wordpress theme.
I have made a page template that includes posts for one category. I used a .
If I limit the number of posts per page to 5 (example) in my admin panel and if I put a , it does not work… It always put the same 5 last posts when I click on the link “next page”…
Template Name: blog photo
'Pages: ', 'next_or_number' => 'number')); ?>
', ''); ?>
Can anyone tell my were the problem is?
query_post(); – will reset the query from the page URL.
You ask for page 2 in the URL, and query_post() ignores it!
Chris shows you how to use an offset later in the video, or how to preserve the original query. Either one will help you.