WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Elie Herrera
    Member
    Posted 2 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?

    Regards

    http://wordpress.org/extend/plugins/youlist/

  2. birgire
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, you could try

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

    This should activate the shortcodes in $media_content.

  3. Elie Herrera
    Member
    Posted 2 years ago #

    Thanks birgire!

    Worked smoothly.. :P

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic