post acces for guests / unregistered users only

You’ll definitely need custom code for this. Understanding how to create custom queries via WP_Query() will be immensely helpful. You will also need to modify the ‘perm’ parameter for WP_Query() to change the results based on user permissions. https://codex.wordpress.org/Class_Reference/WP_Query https://codex.wordpress.org/Class_Reference/WP_Query#Permission_Parameters If the native WP_Query parameters still don’t give you exactly what you’re looking for you … Read more

How do I change the user via SQL?

You probably haven’t changed the display name, which is probably what is being displayed. “nicename” is used for the author’s posts page url and not for display. UPDATE wp_users SET display_name = replace(display_name, @old_user, @new_user);

Update only some custom user fields

I have found the solution do_action(‘edit_user_profile_update’, $current_user->ID); was the problem. After I commented it out the update went fine. do_action is a plugin hook and expected way more that the from gave: explanation

Store extra user values permanently

update_user_meta will store the value permanently, as you are expecting. How ever in your case, there are multiple scenerio where you can loose those data. Thats the reason you are seeing empty result. First check when are you running the update_user_meta. Is it on every page request. If so then $_POST[‘the new value’] shouldn’t be … Read more

List all users based on array of domains

You can try below code which return object of matched records with user_email column into wordpress database users table. /* This function will return object of all match user records Function Location : themes/function.php */ function get_domain_user($domains){ global $wpdb; //Build query for match records selection using RLIKE $strdomain = ”; foreach( $domains as $domain ) … Read more

I try to add informations to User profile

Hi I have tried your code and it works when you do like below: $user_id = get_current_user_id(); // this will give user id of current loged in user // or try using this to get author ID related to your post, this will give $user_id of post author $temp_post = get_post($post_id); $user_id = $temp_post->post_author; var_dump(get_the_author_meta( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)