Change category page listing order

Discussion in 'GeoCraft WordPress Theme' started by tasburyjr, Aug 1, 2013.

  1. tasburyjr

    tasburyjr Member

    Joined:
    Jul 20, 2013
    Messages:
    44
    Likes Received:
    4
    How can I change the category pages listing order so that the order is old to new.

    This gives more inventive to sign up early by allowing them to claim top few spots.
     
    effyeweb likes this.
  2. tasburyjr

    tasburyjr Member

    Joined:
    Jul 20, 2013
    Messages:
    44
    Likes Received:
    4
    Any idea how to reverse the search results order on category pages? I would like them to go from older to new.
     
  3. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    You can set category listings order through "front-page.php" file.
    Add code given below as shown in the image.

    Code:
    'order' => 'ASC'
    View attachment 1866
     
    effyeweb likes this.
  4. tasburyjr

    tasburyjr Member

    Joined:
    Jul 20, 2013
    Messages:
    44
    Likes Received:
    4
    I want to change the order on the CATEGORY pages not the front page. How would I go about doing that?

    Thanks for continued help :)
     
  5. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Listing order will not work separately for category page.
    Use code given above for front page. It will also order category page listings.
     
    effyeweb likes this.
  6. tasburyjr

    tasburyjr Member

    Joined:
    Jul 20, 2013
    Messages:
    44
    Likes Received:
    4
    Anyone that needs this solution

    Category pages are controlled by taxonomy-listcat.php


    add the below code below this line of code "
    * called loop-category.php and that will be used instead.
    */

    Code:
    query_posts($query_string . '&order=ASC');
     

Share This Page