Skip to:
Content
Pages
Categories
Search
Top
Bottom

html in profile fields

  • @philbow

    Participant

    I have a need where I want to add html to the bp profile fields. I am using WP 2.8.4 and BP 1.1.1. Per a different thread, I’ve tried….

    function stuff_i_want_triggered_after_bp_loads(){
    remove_filter( 'xprofile_get_field_data', 'wp_filter_kses', 1 );
    }
    add_action('wp', 'stuff_i_want_triggered_after_bp_loads');

    …but it generates an error. Since the thread was older, I’m guessing something changed in 1x version.

    How can I enable html in profile fields?

    Thanks,

    Phil

Viewing 4 replies - 1 through 4 (of 4 total)
  • @johnjamesjacoby

    Keymaster

    What error does it generate? The code looks fine. Where are you putting it. The only thing I can think is that it’s running before the filter is added somehow.

    @philbow

    Participant

    I am putting it into bp-custom.php per the thread referenced. The error is that it can’t pass the headers because it already did.

    Thanks,

    Phil

    @djpaul

    Keymaster

    I assume you’ve wrapped your code in <?php ?> brackets?

    Also, check you haven’t got any linebreaks or white spaces anywhere.

    @philbow

    Participant

    DJPaul,

    Yes it was wrapped, and no line breaks/whitespace.

    Thanks,

    Phil

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘html in profile fields’ is closed to new replies.
Skip to toolbar