• Resolved mth75

    (@mth75)


    Hello all,

    I was almost developing a widget plugin until it dawned on me. No need for a custom widget. Just make sure you use short code in a text widget (which you can place in footers not only sidebars).

    Add to your function.php in your child theme our default theme.

    add_filter('widget_text', 'do_shortcode');

    Now drag a text widget in to any widget area and just type (or copy/paste as example):

    Total unique visitors: [slimstat f=’count-all’ w=’ip’]

    Solved.

    https://www.ads-software.com/plugins/wp-slimstat/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Howto add shortcode in widget’ is closed to new replies.