You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is a bug or a feature request but in my use case I need to list all WordPress users within a radius, but the geo_mashup_query function doesn't seem to work with WP_User_Query function.
This is my code, which returns all users
$args = array(
'geo_mashup_query' => array(
'near_lat' => $lat_user,
'near_lng' => $long_user,
'radius_km' => 1,
)
);
// The Query
$user_query = new WP_User_Query( $args );
// User Loop
if ( ! empty( $user_query->get_results() ) ) {
foreach ( $user_query->get_results() as $user ) {
//all users are listed here
}
}
The text was updated successfully, but these errors were encountered:
I don't know if this is a bug or a feature request but in my use case I need to list all WordPress users within a radius, but the geo_mashup_query function doesn't seem to work with WP_User_Query function.
This is my code, which returns all users
The text was updated successfully, but these errors were encountered: