This topic contains 1 reply, has 2 voices. Last updated by Bruce 3 years, 9 months ago.
Topic Author | Topic |
---|---|
Posted: Saturday Apr 6th, 2013 at 10:47 am #46762 | |
Hello, I want to creat a list of users on my website. I want to get the user id’s in an array by user custom registration fields. I want to use something like this to get the Id’s of a groep of users. $UserIDs = $wpdb->get_col( $wpdb->prepare(“SELECT $wpdb->users.ID FROM $wpdb->users XXXX”) XXXX need to do this: WHERE model_category contains “Fashion” But I can’t figure out how to do this. I;m not that good with SQL Querys. I have also tryed this (but it didn’t work): Can you please help me out? Thank you. Kees Veerman |