mysql update user’s password and activation key

You are using the user email as the user login. Your code, formatted for readability, looks like: $resetQuery = $wpdb -> query( $wpdb -> prepare( “UPDATE wp_users SET user_pass = %s, user_activation_key = ” WHERE user_login = %s AND user_activation_key = %s”, $hashedPwd, $useremail, $key ) ); The $useremail argument matches the user_login = %s … Read more

Error when send reset password

For starters recovering your own access would be good. If email approach fails for you, Codex has Resetting Your Password page which gives instructions for several more approaches. To troubleshoot the issue in general you should start with disabling plugins / using default theme, and likely checking WordPress core files for modification or simply replacing … Read more

Cannot reset a loop in a plugin template

Your question is incomplete and you have omitted all the context for some weird reason. I hope we agree that query_posts() is a bad idea. There’s enough been said on it: When to use WP_query(), query_posts() and pre_get_posts Having said that, have you tried wp_reset_postdata, wp_reset_query or rewind_posts? I have no idea what you are … Read more

What is the best way to reset a search on a meta_key / meta_value?

I wouldn’t push the meta query entries like that but build it more logical. So for example: $meta_query_args = array( ‘relation’ => ‘AND’ ); // assuming you want ‘AND’ search, you’re using both in your example if ( ! empty( $_POST[‘city’] ) && $_POST[‘city’] != ‘0’ ) { $meta_value_ville = $_POST[‘city’]; $meta_query_args[‘city_clause’] = array( ‘key’ … Read more