Advertisement
bphelp

Edit Profile Group 2 link template reference

Sep 21st, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. // You can use the below code as a reference for adding a dynamic link to edit profile field group 2 to your template. Your blog url is pulled dynamically so you just need to change the remaining path to that image in this part of the code "/wp-content/uploads/folder-the-image-is-in/image-name.png" to correspond with where the image is you want to use.
  2. <?php if ( is_user_logged_in() ) { ?>
  3. <a href="<?php echo bp_loggedin_user_domain() . 'profile/edit/group/2/'; ?>"><img src="<?php bloginfo('url'); ?>/wp-content/uploads/folder-the-image-is-in/image-name.png"></a><?php } ?>
  4.  
  5. // Below is an example just for the link without using an image:
  6. <?php if ( is_user_logged_in() ) { ?>
  7. <a href="<?php echo bp_loggedin_user_domain() . 'profile/edit/group/2/'; ?>">Edit My Profile</a><?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement