Results 1 to 6 of 6

Thread: Classipress "Newest Tab" Ads sort order by ASC/DESC

  1. #1
    Thread Starter
    sebruk's Avatar
    Join Date
    May 2012
    Location
    Poland
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Classipress "Newest Tab" Ads sort order by ASC/DESC

    Hello Everybody!

    I have been searching the forum for some time but no simple answer came to me. I would like to change the name of the "Newest" tab on the main page and sort it from OLDEST to NEWEST (I guess it means ASCENDING). Is it possible to do that without a plugin? I checked a similar issue http://forums.appthemes.com/how-just...te-desc-18695/ and http://forums.appthemes.com/order-ad-listings-11950/ but there is no answer.
    I tried to add this code but I did not work:
    FILE: /wp-content/themes/classipress/index.php line 69
    WAS: query_posts( array( 'post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged ) );
    CHANGED TO: query_posts( array( 'post_type' => APP_POST_TYPE, 'ignore_sticky_posts' => 1, 'paged' => $paged, 'orderby' => 'asc' ) );

    Can somebody help please?

    Thank you!

  2. #2
    Veteran barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,785
    Thanks
    186
    Thanked 742 Times in 623 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

  3. #3
    Amateur katanka's Avatar
    Join Date
    Dec 2011
    Location
    Belgium
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  5. #5
    Amateur katanka's Avatar
    Join Date
    Dec 2011
    Location
    Belgium
    Posts
    19
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to remove "Highest Rating" option in Refine Search / Sort
    By starrlightmedia in forum Vantage General Discussion (Legacy)
    Replies: 3
    Last Post: September 9th, 2012, 02:59 PM
  2. Replies: 3
    Last Post: January 4th, 2012, 06:32 AM
  3. [TUTORIAL] Sort ads by Popularity, Using facebook "likes"
    By ricardo in forum ClassiPress General Discussion
    Replies: 2
    Last Post: July 22nd, 2011, 03:54 PM