Skip to:
Content
Pages
Categories
Search
Top
Bottom

Use if then to call BuddyPress Extended Profile fields?


  • theatereleven
    Participant

    @theatereleven

    I’m trying to show an image on a profile based on whether a check box is checked in the extended profile.

    For example, on a normal WordPress site I do this with custom fields like this:

     <?php if (get_field('badge_certified')): ?>
      <div class="badge"><img src="<?php echo get_bloginfo('url'); ?>/media/badge-certified.png" class="tooltips" title="Certified Member"></div>
     <?php endif; ?>

    The above code only shows the badge if the ‘badge_certified’ custom field is filled out.

    So if I have a BP extended profile checkbox named ‘Certified Member’ and I want an image to display if that field is checked, how could I do this?

    Thanks to anyone willing to help out!

  • The topic ‘Use if then to call BuddyPress Extended Profile fields?’ is closed to new replies.
Skip to toolbar