YouList - YouTube playlist shortcode
[resolved] Shortcode not working by sending across theme options (3 posts)

  1. Elie Herrera
    Posted 4 years 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?



  2. Birgir Erlendsson (birgire)
    Plugin Author

    Posted 4 years ago #

    Hi, you could try

    <?php echo do_shortcode($media_content); ?>

    This should activate the shortcodes in $media_content.

  3. Elie Herrera
    Posted 4 years ago #

    Thanks birgire!

    Worked smoothly.. :P

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • YouList - YouTube playlist shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic