[Plugin: WP-Paginate] Archive Pagination redirects to home page?
-
I’m using the wp-paginate plugin to paginate certain sections of the site I’m currently working on and it’s working fine for everything but the Archive page.
The first page of the Archive (archive.php in my theme) shows up just fine. But when you click on a page number or the next button, you are taken to the home page(index.php).
Here’s the code for my query:
query_posts('s='.$search_term.'&paged='.$thepage.'&cat='.$cat.',&posts_per_page='.$per);
About the variables: I’ve made a function that forms the query.
Anyway, I’ve tried this on both my localhost, and a live server and the behaviour is the same (I thought maybe my .htaccess was at fault locally). The URL for archive pages is mysite.com/2011/02/page/2/ but it uses the index template not the archive.
Any ideas why this could be? Maybe it’s another plugin interfering?
- The topic ‘[Plugin: WP-Paginate] Archive Pagination redirects to home page?’ is closed to new replies.