Support » Plugin: YouList - YouTube playlist shortcode » [Plugin: YouList – YouTube playlist shortcode] Shortcode not working by sending across theme options
4 years, 8 months ago
Im using a theme options panel on my template to send the shortcode to the wordpress page, but ain’t working.
I put the code [youlist pid=”PL3FF15AA7ED356D9F”] for testin purpose and the page return the same text instead of the player.
I use this code to display the content that we place in the field of the theme options:
<?php echo $media_content; ?>
The shortcode only works if i put it in a single post or page directly and not from the theme options panel. Is there a way to make this possible?
Hi, you could try
<?php echo do_shortcode($media_content); ?>
This should activate the shortcodes in $media_content.
Worked smoothly.. 😛