![]() |
Hi,
I've spent all day trying to figure this out, I've done all the tutorials that I could find on the web, but I still can't get the pagination to work properly.
WP-PageNavi shows 3 pages (there are 19 posts total) and the limit per page is 7, but when clicking on the nav buttons just reloads the same posts.
this is an example of the problem:
http://www.dekritischebelegger.nl/archives
/category/Aandelen/2010/05/page/3/
I have used this code to get archives by category
http://www.jayminkapish.com/2009/06/16/date-archive-for-a-category/
but I modified it to suit my needs. Anyway, it doesn't say anything about pagination
I haven't posted all the code, but I attached the functions.php file Solution - 1after the function query_posts run please make to debug variables that passed to the query_posts Solution - 2Looks like a simple typo maybe? $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array( 'cat' => $category_array["term_id"], 'year'=> $request_parts["4"], 'monthnum'=>$request_parts["5"], 'paged' => $paged ));Give that a shot, maybe? |
Wordpress |
Type: | Code Example |
Category: | Coding |
Sub Category: | Code Example |
Uploaded by: | Admin |
Views: | 6 |