Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hopefully someone can help. I am looking to add a different image banner to each of the profile group tabs I have on my Buddypress site. I have identifed the profile-loop.php as the file I need to include this on but when I try the following code it breaks the profile section of my site:

<?php if ( bp_the_profile_group_name() == 'About') ) : ?> 


<?php endif; ?>

Can anyone suggest how I might target the About group on my site and insert custom HTML?


share|improve this question
I am not sure if i've understood the requirement correctly. Check this link and let me know if that's what is required screencloud.net/v/g5kq –  webdwall Jul 14 '13 at 19:39

1 Answer 1

up vote 0 down vote accepted

Think I have figured out how best to work this. For anyone that may need it sometime the code I used was:

<?php if ( 1 == bp_get_the_profile_group_id()) : ?>

<h4>About Me</h4>

<?php endif; ?>

With 1 == the profile tab where I need to add my custom HTML. If anyone has a better solution I am open to them. Thanks.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.