Shortcode inserted with php not working
I can’t figure out why and it’s driving me nuts but I can’t get a shortcode to work on my single.php page. It works just with the shortcode entering on a regular page but when I try to insert with php it just shows up the text. I use this.
<?php echo do_shortcode('[tube][/tube]’); ?>
It doesn’t work no matter what I put in between the shortcode which is suppose to be just a youtube url. What am I missing?
- The topic ‘Shortcode inserted with php not working’ is closed to new replies.