1

I've installed fishpig extension in magento for wordpress blog. But I'm not able to apply shortcode in sidebar. But its works in post.

Please help me on this situation.

Darshak Shah
  • 159
  • 8
  • I'm voting to close this question as off-topic because Stack Overflow is a [programming-related](http://stackoverflow.com/help/on-topic) Q&A site. Your question is not about programming. Perhaps you should post it on http://magento.stackexchange.com instead? – Enigmativity Oct 17 '16 at 07:31
  • @Enigmativity Okay No problem, I've posted into magento stackexchange.com and This a also programming related questions. :) – Darshak Shah Oct 17 '16 at 07:36

1 Answers1

1

Step 1. You need to add one line of code to your functions.php. You can also install a plugin, like Code Snippets, to add the line of code as a Snippet. Add this line of code (and the comment) at the end of your child theme’s functions.php and save. If you use Code Snippets, be sure to activate the code snippet after saving.

/* Allow shortcodes in widget areas */

add_filter('widget_text', 'do_shortcode');

Step 2. Next find the widget area you want to use. In your WordPress Dashboard, go to Appearance > Widgets.

Step 3. Add a Text Widget to your widget area, maybe your Sidebar. Yes, you’re going to add the shortcode to a Text Widget.

Step 4. Then add the shortcode and save.

Rabindra Nath
  • 361
  • 2
  • 8