Displaying profile field as image on member header
-
Hi all
I am trying to display a flag on the profile header for the user’s nationality.
A few years ago I was building a site with BuddyPress and had this working, so not sure what I’m doing wrong this time.
<div id="item-header-content"> <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?> <img src="/img/nationality/<?php bp_member_profile_data( 'field=nationality' ); ?>.png" title="<?php bp_member_profile_data( 'field=nationality' ); ?>">
Can anyone help with this?
Many thanks
- You must be logged in to reply to this topic.