• 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)
  • Thread Starter fncll

    (@fncll)

    I’m using the default Kubrick template and WP 1.5.x (can’t remember– the last of the 1.5 branch) if that helps. Anyone?

Viewing 1 replies (of 1 total)
  • The topic ‘Alphabetic Sort of One Category breaks paging links?’ is closed to new replies.