Support » Plugin: YouList - YouTube playlist shortcode » [Plugin: youList – Youtube playlist shortcode] How can I embed this in a Sidebar Widget?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Birgir Erlendsson (birgire)

    (@birgire)

    hi Nélio

    You can do it by adding this at the bottom of your functions.php

    add_filter('widget_text', 'do_shortcode');

    It will then run (any) shortcodes in your widgets.

    Hope this helps

    ps: I didn’t wan’t to include this code in the youlist plugin – I might include it in the future as an option.

    Plugin Author Birgir Erlendsson (birgire)

    (@birgire)

    I think I found a way to run do_shortcode only for [youlist] in the text-widgets.

    If I get it to work I will upgrade the plugin so you can get this working in the sidebar text widgets

    gavinwebb

    (@gavinwebb)

    I used the do_shortcode function in functions.php and it works fine.

    Plugin Author Birgir Erlendsson (birgire)

    (@birgire)

    I will add this to the plugin in the next version (today)

    if ( !has_filter( 'widget_text', 'do_shortcode' ) ){
            add_filter('widget_text', 'do_shortcode');
    }

    so [youlist] shortcodes can be used in text-widgets

    Plugin Author Birgir Erlendsson (birgire)

    (@birgire)

    You can now upgrade to 1.0.2

    neliocastro

    (@neliocastro)

    Updated! Work Great! Great Job!

    Thanks,

    Nélio

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: youList – Youtube playlist shortcode] How can I embed this in a Sidebar Widget?’ is closed to new replies.