Featured First

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

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

Open Support Ticket
  • Author
    Posts
  • #453376

    Alex Nott
    Expired Member
    Post count: 107

    Great plugin! V2 is going good.

    I saw this snippet the other day. I need this for V2. When I add the snippet I get a warning from the snippet plugin. #WOD!

    
    
    
    function gd_snippet_sort_featured_first( $orderby, $sort_by, $table ) {
        if ( $sort_by == 'nearest' || $sort_by == 'farthest' ) {
                    $orderby = $table . ".is_featured asc, " . $orderby;
            }
        return $orderby;
    }
    add_filter( 'geodir_posts_order_by_sort', 'gd_snippet_sort_featured_first', 1000, 3 );
    

    https://wpgeodirectory.com/support/topic/search-radius-not-working/page/3/#post-452121

    That is for distance searches, but I also need the same thing for regular searches because my directory is for a small area.

    Thanks for your help with this. Pricing for Featured works, but users really need to see those featured listings first.

    #453471

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #453504

    Alex Nott
    Expired Member
    Post count: 107

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #454462

    Alex Nott
    Expired Member
    Post count: 107

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #454827

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

Viewing 5 posts - 1 through 5 (of 5 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount