Forum Replies Created
-
great…
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 $embedIt 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 $embedThat 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 ?
In reply to: Public messages in sidebarI 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 !
In reply to: Modifying the profile pageThanks a lot. That helped.
In reply to: Modifying the profile pageI meant: when my theme doesn’t have a /member/single folder