Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

  • arkokoley
    Participant

    @arkokoley

    I coded it directly into the theme’s header, where the rest of the sidebar is. Should I do something else? I’m a newbie to PHP, though I know C++ to some extent.


    arkokoley
    Participant

    @arkokoley

    This is the site. Site


    @chouf1
    , I use WordPress-Bootstrap by 320press. In the circled tab, i want to display the class of the student. Also depending on the Class menus with different elements will be put in that sidebar.

    How do I do this? Even if I could compare the value of the profile field it would do.
    For example,

    if( bp_profile_field_data(‘field=class’);==X)
    <do something here.>

    something like this.


    arkokoley
    Participant

    @arkokoley

    @chouf1, @wdfee

    Thanks for the help but neither code is useful for me.

    bp_member_profile_data( ‘field=Class’ ); returns an error stating unexpected “=”


    @chouf1
    , your code doesn’t return anything atleast in my case. Any ideas what I did wrong? This is what I coded:
    <?php
    global $current_user;
    $user_id = bp_get_member_user_id();
    $class = xprofile_get_field_data( ‘Class’, $user_id );
    echo $class;
    ?>

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar