Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • wpsouf
    Participant

    @wpsouf

    Hello,

    The issue is that i was using bp_displayed_user_email() this function echo’s the email of a user, i should use bp_get_displayed_user_email() this function returns the email of a user.

    So @danbp your code was correct, it was my function… 🙂

    Here is the corrected code :

    <?php $user_email = bp_get_displayed_user_email(); ?>
    <span class=”thrive-member-role”>
    <?php echo’‘ . $user_email . ‘‘; ?>
    </span>


    wpsouf
    Participant

    @wpsouf

    Ok, sorry.
    But still not work…


    wpsouf
    Participant

    @wpsouf

    Ok.
    But where is the corrected code ?


    wpsouf
    Participant

    @wpsouf

    yeah exactly :p

    The code is not working, unfortunately… i get a blank page.


    wpsouf
    Participant

    @wpsouf

    i can’t figure out…

    My first code is working. i want just add a mailto link.

    Can you please, if possible, give me the exact code based on my original code ?

    (i’m just beginner…)


    wpsouf
    Participant

    @wpsouf

    Like this ? :

    <?php $email = bp_displayed_user_email(); ?>

    <?php if ( ! empty( $fonction ) ) { ?>
    <span class=”thrive-member-role”>
    <?php echo ‘‘. bp_displayed_user_email(); .’‘; ); ?>
    </span>
    <?php } ?>


    wpsouf
    Participant

    @wpsouf

    Danp, thank for your return.

    Should i replace all my code with yours ? or just a part of it ?

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