This topic has 2 replies, 2 voices, and was last updated 9 years by cameronvegas.

  • Author
  • #86257
     cameronvegas
    Participant

    There is no profile page from the demo that I can add to the menu.  Suggestions?

     

    Also, in wordpress, usually I’d navigate to the page and then click “edit page”.  The toolbar disappears when I view my site even while I’m logged in despite checking the box to the contrary.

    #86259
     sharmstr
    Moderator

    If I understand your first question, you can add menu links to a user profile by adding a custom link and using the ##profile_link## variable.

    With BuddyPress/bbPress installed you can add a link to profile using ##profile_link## in the URL input from Custom Links section bellow. Example: ##profile_link##/messages

    Hmmm. It appears to be working fine on my site. Do you have any plugins that would override this?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
    #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 3 posts - 1 through 3 (of 3 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?