Shortcodes if used in widgets will not be replaced by the relavant code. You can make them display proper code by using this code.

// display shortcode in widgets

if ( !is_admin() ){

    add_filter('widget_text', 'do_shortcode', 11);

                 }



Enhanced by Zemanta

Yumna Tatheer

I am a Computer Science graduate and a part time blogger from Lahore, Pakistan. I am a PHP programmer and a wordpress expert.

More Posts

Follow Me:
Facebook