Tag Info

Hot answers tagged


I am not sure why your query is returning more IDs than necessary. The $args for get_users look correct. By default get_users does not support orderby=rand, but you can overwrite that option. See below: function random_user_query( &$query ) { $query->query_orderby = "ORDER BY RAND()"; } // Usage: [random_users how_many = 3] add_shortcode( ...


This function bp_get_user_has_avatar() calls bp_core_fetch_avatar with this argument 'no_grav' => true so you could write your own function to see if a user is not using the default avatar: function lurie_avatar_check( $user_id ) { $retval = false; if ( bp_core_fetch_avatar( array( 'item_id' => $user_id, 'no_grav' => false, 'html' ...

Only top voted, non community-wiki answers of a minimum length are eligible