Buddypress building shortcode
-
Hi.
I am trying to make shortcode for youtube.
So I wrote function in buddypress theme:
function youtube( $atts, $content = null ) {
return ”;
}add_shortcode(“youtube”, “youtube”);
But it wont show youtube video on activity or profile page.
On activity its blank, on profile: [youtube]8MEOTvkuic4[/youtube].What I should do to make youtube appearing everywhere, where this shortcode is added.
And also I would like to know how to add buttons under “whats new – text field
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Buddypress building shortcode’ is closed to new replies.