1
votes

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.

1
I'm voting to close this question as off-topic because Stack Overflow is a programming-related Q&A site. Your question is not about programming. Perhaps you should post it on magento.stackexchange.com instead? - Enigmativity
@Enigmativity Okay No problem, I've posted into magento stackexchange.com and This a also programming related questions. :) - Darshak Shah

1 Answers

1
votes

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.