Alphabetic Sort of One Category breaks paging links?
-
I have put the following code before the loop in my archive.php template and it works partially– that category does display in alphabetical, ascending order. But the next page links /page/2/ are being ignored and the next page link just brings up the same results over again). Any ideas how to fix the paging?
if ($cat == 14) {
$categoryvariable=($cat); // assign the variable
$query= 'cat=' . $categoryvariable. '&orderby=title&order=ASC'; // concatenate \
the query
query_posts($query); // run the query
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Alphabetic Sort of One Category breaks paging links?’ is closed to new replies.