frontend user with custom profile pages
Have you tried using BuddyPress? BuddyPress allows all these thing, and has many other features ( though things can be turned on and off if it’s too much )
Have you tried using BuddyPress? BuddyPress allows all these thing, and has many other features ( though things can be turned on and off if it’s too much )
If you want to completerly remove the possibility for an user to access on profile, you can Give admin possibility to choose which user can access on profile and which not Remove the profile link from menu and from admin bar Ensure the profile is not accessible even if accessed directly by manually typing address … Read more
I had same issue a month ago. As you I tried to use Co-Author Plus, but with the Plugin I haven’t reached my goal. So , at the end, I thought that they are not real user and I make them like a custom taxonomy and I solved any problem
Choosing the right template As your “User Profile”-Page is something completely custom and not the admin UI user profile page, I’d suggest to take the uthor posts page instead: get_author_link( true, get_current_user_id() ); Then modify this template. Pretty URls No need to go outside the WP template hierarchy. If you want something like ~/user, then … Read more
Try instead $user_contactmethods[‘work’] = __(‘I work for…’); and <?php echo get_user_meta($current_user->ID,’work’,true);?> where the array index is ‘work’ instead of ‘I work for…’, i.e. lowercase and without any spaces.
You could check the $_POST variable when updating the user profile page. I would hook into user_profile_update_errors and do something along those lines. This filter will not save to DB if errors are found. add_filter(‘user_profile_update_errors’, ‘wpse_236014_check_fields’, 10, 3); function wpse_236014_check_fields($errors, $update, $user) { // Use the $_POST variable to check required fields if( empty($_POST[‘first_name’]) ) … Read more
After trudging through the BP source code today, I believe that I have finally figured this out. The hook used to update Profile Fields in BuddyPress is “xprofile_data_before_save”. If anyone know of something better, please let me know!
Ok, I was doing it wrong, here’s a working solution, based on Justin Tadlock’s tutorial. <?php /* Add custom profile fields (call in theme : echo $curauth->fieldname;) */ add_action( ‘show_user_profile’, ‘my_show_extra_profile_fields’ ); add_action( ‘edit_user_profile’, ‘my_show_extra_profile_fields’ ); function my_show_extra_profile_fields( $user ) { ?> <?php if(user_can($user->ID, “paying_member”)) : ?> <h3>Extra profile information</h3> <table class=”form-table”> <tr> <th><label for=”paypal_account”>Paypal</label></th> … Read more
It seems as if the hook personal_options_update might be what you’re looking for. add_action( ‘personal_options_update’, ‘my_custom_func’ ); function my_custom_func( $user_id /* if you need that */ ) { … }
List User Comments on User Profile BuddyPress [closed]