Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 26 through 30 (of 30 total)
  • @martinbeaulne

    Participant

    great…

    @martinbeaulne

    Participant

    I would like to have an advice about all of this…

    I’m trying basically the same thing, with the same code. And something strange’s going on.

    In the member-header.php file, I try to embed a video from a field “video”. Here is the code I’m using:

    $embed = wp_oembed_get( bp_member_profile_data( ‘field=video’ ), array( ‘width’ => 400 ) );
    echo $embed

    It only shows the link ( the value of “video” field ), in plain text.

    But when I put in the link, instead of the field value, it works. Like this:

    $embed = wp_oembed_get( ‘http://www.youtube.com/watch?v=pZul0OH5qoE’, array( ‘width’ => 400 ) );
    echo $embed

    That embeds the video correctly.

    –> Obviously, I can’t use that static code. It’s just for testing.

    I really don’t understand why wp_oembed_get refuses to work when I’m passing a web link as a value, and works correctly when i’m passing a web link from a direct string.

    Can someone help me on this ?

    @martinbeaulne

    Participant

    I just realized the ACtivity/Mentions tab not only shows public messages but also public mentions, etc…

    I would like all of this ( the whole Activity/Mentions thing ) displayed in a sidebar widget instead of the bottom tabs…

    Isn’t there a simple shortcode I can use to display it in the custom text widget ?

    Thanks !

    @martinbeaulne

    Participant

    Thanks a lot. That helped.

    @martinbeaulne

    Participant

    I meant: when my theme doesn’t have a /member/single folder

Viewing 5 replies - 26 through 30 (of 30 total)
Skip to toolbar