Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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.
- <?php if ( is_user_logged_in() ) { ?>
- <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 } ?>
- // Below is an example just for the link without using an image:
- <?php if ( is_user_logged_in() ) { ?>
- <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