WordPress.org

Support

Support » Plugins and Hacks » Amazon Product in a Post Plugin » [Resolved] [Plugin: Amazon Product In a Post Plugin] Shortcode in a Sidebar

[Resolved] [Plugin: Amazon Product In a Post Plugin] Shortcode in a Sidebar

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Don Fischer

    @prophecy2040

    Ken,
    I responded to you personally already, but this is for anyone else looking for the same answer:

    Try adding this to your functions.php file for your theme (that way it will not be overwritten when the plugin is updated)

    if(function_exists('aws_prodinpost_filter_content')){add_filter('widget_text', 'aws_prodinpost_filter_content', 10);}

    This checks to make sure the plugin is installed and if so, adds the filter to the widget text.

    Keep in mind you may need to style the products to work in your sidebar theme, but that should solve your issue.
    Warm regards,
    Don

    Hi Ken,

    If you want to add any shortcodes to text widgets then just open your theme’s functions.php file and add the following:

    add_filter('widget_text', 'do_shortcode');

    That will enable you to display any shortcode in the text widgets.

    Hope that’s helpful.

    Cheers,

    Zain

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Amazon Product In a Post Plugin] Shortcode in a Sidebar’ is closed to new replies.
Skip to toolbar