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:
Why does do_shortcode not work here? In the same template I have one of my own shortcodes, which works like a charm.
- The topic ‘do_shortcode in template not working’ is closed to new replies.