WordPress.org

Forums

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

  1. hkcharlie
    Member
    Posted 3 years 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 2 years 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 2 years ago #

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

  4. imath
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Bowe Codes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags