Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: How do I make a profile page so I can put it in the menu? #86296
     cameronvegas
    Participant

    Fantastic! Thank you.

    Alternatively, for anybody else who may encounter this same question. I don’t have bbpress installed so I inserted this into my functions.php file:

    COPY CODE
     function redirect2profile(){
    	include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
    	if($_SERVER['REQUEST_URI'] == '/profile/' && is_plugin_active('buddypress/bp-loader.php') && is_user_logged_in()){
    		global $current_user;
    		wp_redirect( get_bloginfo('url') . '/members/'. $current_user->user_login . '/profile/'); 
    		exit();
    	}
     }
    add_action('init', 'redirect2profile');
Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?