[wp-hackers] embed shortcode

Moya, Eddie emoya at tribune.com
Thu Sep 16 16:55:17 UTC 2010


Try this...

http://codex.wordpress.org/Function_Reference/wp_oembed_get


On 9/16/10 11:41 AM, "Ashish Saini" <ashishsainiashfame at gmail.com> wrote:

Hi,

I am trying to use this in a template :

$fire = '[embed width="427"]'.$prs_spec["video"].'[/embed]';
echo do_shortcode($fire);

But it just displays the content of $fire.

Even echo do_shortcode('[embed]
http://www.youtube.com/watch?v=MuaBAe-lqdg[/embed]'); didn't work.

How can I use embed shortcode anywhere on the theme?

Thanks & Regards
Ashish Saini aka Ashfame
(Deserve Before You Desire)
Homepage : http://www.ashfame.com | Blog : http://blog.ashfame.com | Twitter
: http://twitter.com/ashfame
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers




More information about the wp-hackers mailing list