DesignMe Creative Group

207.776.5416 • MAINE & ARIZONA

fb pintrest rssicon
  • Home
  • Services
    • Websites & Social Media
    • Marketing & E-Newsletters
    • Logos & Print
    • Training & Support
  • Portfolio
    • Website Design
    • Creative Design & Branding
    • Social Media & E-Marketing
  • The Team
  • Why DesignMe?
    • Our Philosophy
    • Affordable Prices
    • Getting Started
  • Blog
  • Payment
  • Contact

March 4, 2022 By Debbie Leave a Comment

Redirect to the BuddyPress Profile Page

Buddypress doesn’t have an actual “page” for a user profile – it is dynamically created. I looked high and low for an answer and finaly came across this solutions. Thanks to Buddyforms, for this bit of code. Place this into your functions.php file and it will do the trick if you want to add a link to the buddypress profile page for users/members. Just change the number 2 to the page ID of the placeholder page.



if( is_page( 2 ) ) {
if(is_user_logged_in()){
wp_safe_redirect( bp_loggedin_user_domain() );
exit;
}
}
}
add_action( 'wp', 'buddyforms_redirect_a_page_to_the_buddypress_profile' );

Filed Under: Code Tips, TechTalk

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Site Search

Tech Talk

  • Enqueue CSS2 Google Fonts
  • Redirect to the BuddyPress Profile Page
  • “Going Live”
  • Insert Soliloquy Shortcode Using Advanced Custom Fields
  • Redirect My Website To https://

Creative Corner

  • Unique Websites Deserve a Unique Login
  • Adding A Shortcode To The Post Title
  • Favicons – A Tiny Graphic With Big Impact
  • Social Media Icons – So Many Options!
  • Savage Chicken iMugs

From Our Blog

  • The “ME” In Our Name Really Means YOU
  • Behind Your Website
  • I Have a Website – Now What?
  • Full Width (100%) Section On A Fixed Width Page
  • Small Can Mean Big When It Comes To Websites

View Topics

creative

Functional

affordable

Copyright © 2023 · Custom Website by DesignMe Creative Group · Log in

Hosted Locally by Maine Hosting Solutions