Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author donmik

    (@atallos)

    You need to put into your functions.php. This function uses the hook that is already in member-header.php: bp_before_member_header.

    Thread Starter strangechild

    (@strangechild)

    hmmm, I added this exact text to my functions.php but now I cannot edit profiles.

    <?php
    
    function ML_display () { ?>
    <p style="float:right;">
    <img height="100px" width="100px" src="https://www.cbpmag.com/wp-content/uploads/<?php bp_member_profile_data('field=Membership Level Image'); ?>" />
    </p>
    <?php }
    add_action('bp_before_member_header','ML_display');
    
    ?>

    This is the error I get:
    Warning: Cannot modify header information – headers already sent by (output started at /home/content/43/10469743/html/wp-content/themes/graphehe-child/functions.php:9) in /home/content/43/10469743/html/wp-includes/pluggable.php on line 899

    Any ideas for me?

    Thread Starter strangechild

    (@strangechild)

    Figured it out.

    I followed the error to the www.remarpro.com FAQ and found the solution.

    THANKS!

    Plugin Author donmik

    (@atallos)

    Great! You’re welcome!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding image from field to member-header.php’ is closed to new replies.