Member Site – Always Sends Me Back To Login

You are using an undefined variable in your code ($padeid), it can be causing you problems. Try this code instead: add_action(‘template_redirect’,’wpse16975_check_if_logged_in’); function wpse16975_check_if_logged_in(){ global $wp; if( ! is_user_logged_in() ) { $url = wp_login_url( site_url( add_query_arg( array(), $wp->request ) ) ); wp_redirect( $url ); exit; } }

searching for members in wordpress

Probably this plugin is using user_meta table. Your query should looks like this: $args = array( ‘meta_key’ => $_searchedWhat, ‘meta_value’ => $_searchedFor ); $users = get_users($args); For more informations look into documentation: get_users EDIT: Unfortunately, that plugin is storing all data into one field, so you cannot query users by single field. You should use … Read more