Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Wordpress do_shortcode not working


I cant get wordpress to execute shortcode using do_shortcode.

Please advise why this doesnt work

echo do_shortcode('[jwplayer file="http://mysite.com/video.flv"]');

It simply outputs code at text. It should embed....

Any ideas???

6 Community Answers

JW Player

User  
0 rated :

Can you show us an example of that please?

JW Player

User  
0 rated :

I have the current jw player plugin and it still is printing just text for me on the do_shortcode? Any other fix?

JW Player

User  
-2 rated :

Cameron,

According to what you guys are saying, this should work.

<?php echo apply_fitlers('jwplayer_tag_callback', '[jwplayer mediaid="15912"]'); ?>

From what I'm seeing, this does not work.

Any other ideas? I really need to display the jwplayer from within a template rather from the_content.

JW Player

User  
0 rated :

Cameron,
That does seem to work. Thank you!
-Adam

JW Player

User  
-1 rated :

Ya this is working
<?php
echo jwplayer_tag_callback('[jwplayer mediaid="15912"]');
?>

Ethan Feldman

JW Player Support Agent  
0 rated :

Cool, thanks for sharing.

This question has received the maximum number of answers.