WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

closed as off-topic by birgire, kaiser Aug 1 '14 at 23:03

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the 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
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

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