Tag archive – paging not working
-
Hi,
I’m currently using my tag.php to display tagged posts from only one category (the ‘blog’ category on our website).
I’ve done this by adding the following code to the tag.php file:
<?php $current_tag = single_tag_title("", false); query_posts(array( 'cat'=>'24', 'tag_slug__and'=>array($current_tag), ) ); ?>
(as discussed here)
All is working perfectly on the site. However I noticed when a tag archive is paged things break.
If a user tries to click to the next page (2) then it just displays the first page again (the only thing that’s changed is the URL – from /tag/surf/page/1/ to /tag/surf/page/2/).
Does anyone know a fix for this? I would hugely appreciate it if anyone could help me solve this.
Thanks!
- The topic ‘Tag archive – paging not working’ is closed to new replies.