[wp-hackers] embed shortcode

Ashish Saini ashishsainiashfame at gmail.com
Thu Sep 16 16:41:44 UTC 2010


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


More information about the wp-hackers mailing list