Order of Listings by Those with a Logo

This topic contains 18 replies, has 4 voices, and was last updated by  Stiofan O’Connor 9 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #20838

    Kenny Eliason
    Expired Member
    Post count: 54
    This reply has been marked as private.
    #20844

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks,

    OK i tryed adding code to your child theme funtoins but i managed to take down ur site (no need to thank me, doh!)

    Anyway edit with FTP and u will see my code at the top of the file replace it with this.

    
    
    // function to change featured sort to featured and A-Z
    add_filter('geodir_posts_order_by_sort', 'geodir_posts_order_by_sort_my_change',10,3);
    
    function geodir_posts_order_by_sort_my_change($orderby, $sort_by, $table){
    global $wpdb;
    if($orderby == $table.".is_featured asc, " && ($sort_by=='featured' || $sort_by=='is_featured_asc' )){
    	$orderby = $table.".is_featured asc, $wpdb->posts.post_title asc, ";
    }
    return $orderby;	
    }

    Stiofan

    #20854

    Kenny Eliason
    Expired Member
    Post count: 54

    Ha, awesome. That’s why we do these things in dev!

    Eureka! It worked! Thanks man!

    #20922

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    🙂

Viewing 4 posts - 16 through 19 (of 19 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket