Statistics: Posted by Cristián Lávaque — August 5th, 2011, 10:30 pm
Statistics: Posted by AaronHolbrook — August 5th, 2011, 7:33 am
Statistics: Posted by Cristián Lávaque — August 5th, 2011, 1:06 am
add_filter('posts_where', 'a7author_search_where' );
function a7author_search_where($a7auth_param) {
global $wpdb;
$querystr = "
SELECT $wpdb->usermeta.user_id
FROM $wpdb->usermeta
WHERE $wpdb->usermeta.meta_value LIKE '%post_code%" . $a7auth_param . "%'
";
$author2 = $wpdb->get_results($querystr);
return $author2;
}
Statistics: Posted by AaronHolbrook — August 4th, 2011, 8:23 pm
$user = get_user_option('s2member_custom_fields', $user_id);
Statistics: Posted by Cristián Lávaque — August 3rd, 2011, 11:21 pm
Statistics: Posted by AaronHolbrook — August 3rd, 2011, 3:17 pm