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.