2

Your parameter order is wrong for get_user_meta. The user id should be first. Try: var_dump(get_user_meta( $user->ID, 'afzfp_user_status', true));


2

Use get_user_meta( $user->ID, 'facebook' , true ); But let me clarify you, none of the social media fields are WP core fields. You are using Yoast SEO, and these fields are Yoast SEO features. FYI: I see Yoast SEO from your screenshot. They are stored on the wp_usermeta table with the social media name in lowercase as the keys. For example, the Facebook ...


1

Use the following code to add new column and show data properly. function add_user_columns_hospital( $column ) { $column['hospital'] = 'Hospital'; return $column; } add_filter( 'manage_users_columns', 'add_user_columns_hospital' ); function modify_user_table_row_hospital( $val, $column_name, $user_id ) { switch ($column_name) { case '...


1

Note that the s query arg/string is reserved for posts, so you should use a different name for your custom user search. So basically, you just need to "play" with the meta query nesting. Yes, just like common (PHP) arrays can be in a multi-dimensional/multi-level format, so does the meta_query parameter, be it for WP_Query or the WP_User_Query in ...


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