How to search users for custom meta value and order them by user level
-
Hello there, I have build a search form to retrieve users with particular user meta values and I would like to order them by their user level.
$query = "SELECT * FROM $wpdb->usermeta WHERE (
meta_key= 'wp_s2member_custom_fields') AND (
meta_valueLIKE '%$professione%') AND (
meta_valueLIKE '%$paese%')";
This is my query. How can I order them by their level?
Thanks a lot.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘How to search users for custom meta value and order them by user level’ is closed to new replies.