Skip to:
Content
Pages
Categories
Search
Top
Bottom

bphelp/code field member page display


  • victord34
    Participant

    @victord34

    hello,

    i need to display one line(field-3) of profils in LIST of profil. Its very important for me.


    @bphelp
    give me this code but i have just “Field-name :” and nothing else..doesn’t work :

    add_action(‘bp_directory_members_item’, ‘bphelp_dpioml’);
    function bphelp_dpioml(){
    $bphelp_my_profile_field_3=’Field-Name’;
    if( is_user_logged_in() && bp_is_members_component() ) { ?>
    <div class=”bph_xprofile_fields” style=” margin-left: 25%;”>

    <?php echo $bphelp_my_profile_field_3 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_3 ); ?><br />

    </div><?php
    }
    }

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘bphelp/code field member page display’ is closed to new replies.
Skip to toolbar