Results 1 to 2 of 2

Thread: Problems with sorting options

  1. #1
    Thread Starter
    athora's Avatar
    Join Date
    Jun 2012
    Location
    Spain
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Problems with sorting options

    Hello, i'm having problems trying to show our ads sorted by date of expiration order:

    We have the loop-ad_listing.php with the following:

    <?php
    if (!is_search()) {
    $args = array(
    'post_type'=> 'ad_listing',
    'orderby' => 'meta_value',
    'meta_key' => 'cp_sys_expire_date',
    'order' => 'ASC'
    );
    query_posts( $args );
    }
    ?>

    But ads are not displaying correctly by expiration date when they are listed after a search through our selector search system.

    our website is www.cazalastmoment.com and an you can see an example of what i'm talking about here: http://www.cazalastmoment.com/?s=&#39;%2...search&scat=25

    It's in spanish but as you can see ads are listed by publishing order, not ordered by expiration date.

    We are not able to resolve the problem and make it work properly, we have also installed the wp custom search plugin.

    Thanks in advance!

  2. #2
    Thread Starter
    athora's Avatar
    Join Date
    Jun 2012
    Location
    Spain
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: December 14th, 2012, 11:58 AM
  2. Sorting ads?
    By classtenstrom in forum ClassiPress General Discussion
    Replies: 3
    Last Post: July 8th, 2012, 04:50 PM
  3. [SOLVED] can not assign columns in Menu Category Options and Home Page Category Options
    By skaishann in forum Help Using ClassiPress
    Replies: 6
    Last Post: August 6th, 2011, 09:02 AM
  4. Sorting
    By powersje1 in forum ClassiPress General Discussion
    Replies: 4
    Last Post: July 15th, 2010, 05:48 PM