WordPress.org

Ready to get started?Download WordPress

Forums

Alphabetic Sort of One Category breaks paging links? (2 posts)

  1. fncll
    Member
    Posted 8 years ago #

    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
    }

  2. fncll
    Member
    Posted 8 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic