do_shortcode in template not working
-
I have used do_shortcode in templates a lot, but now I have a problem.
I tried to embed a vimeo movie in my template, but the embedding didn’t work, just the URL was displayed. So that is why I tried:
echo do_shortcode( '[embed]' . SOME-MOVIE-URL-ON-VIMEO . '[/embed]' );
This outputs nothing. If I delete the call to do_shortcode I see the shortcode as follows:
[embed]SOME-MOVIE-URL-ON-VIMEO[/embed]
Why does do_shortcode not work here? In the same template I have one of my own shortcodes, which works like a charm.
Any ideas?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘do_shortcode in template not working’ is closed to new replies.