WordPress.org

Ready to get started?Download WordPress

Forums

Bowe Codes
[resolved] Codes in widgets (4 posts)

  1. hkcharlie
    Member
    Posted 1 year ago #

    I can't see how to make the codes work in a widget, am I missing some instruction ?

    http://wordpress.org/extend/plugins/bowe-codes/

  2. imath
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    You need to add the shortcode in a text widget and then add 2 filters in order to tell WordPress to do shortcode in your text widgets :

    add_filter( 'widget_text', 'shortcode_unautop');
    add_filter( 'widget_text', 'do_shortcode');
  3. hkcharlie
    Member
    Posted 1 year ago #

    .....and where do the filters go ?

  4. imath
    Member
    Plugin Author

    Posted 1 year ago #

    in the functions.php of your active theme for example...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags