WordPress.org

Ready to get started?Download WordPress

Forums

Raw HTML Snippets
Stopped working in sidebar text widget with latest version of WordPress 3.5.2 (5 posts)

  1. Dan & Jennifer
    Member
    Posted 1 year ago #

    Hi there. I just updated to the latest version of WordPress (3.5.2) and now I'm seeing the text of the shortcode in the sidebar text widget? (The content of the shortcode is no longer displaying).

    This is happening on several different websites.

    Here's a screenshot: http://www.screencast.com/t/WnxaQyG9a21B

    It still works in content but not in the text widget.

    http://wordpress.org/extend/plugins/raw-html-snippets/

  2. Dan & Jennifer
    Member
    Posted 1 year ago #

    OK so this is a strange issue... After posting yesterday, I remember that I had deactivated the PollDaddy Plugin (http://wordpress.org/plugins/polldaddy/).

    If I reactivate that plugin, Raw HTML Snippets starts working again. I tried this test with several plugins, but only the PollDaddy plugin causes this issue.

    I even tried uninstalling both the PollDaddy and Raw HTML Snippets plugins - I cannot get Raw HTML Snippets to work if I don't have the PollDaddy plugin activated?

    Please help...

  3. Andy Stratton
    Member
    Plugin Author

    Posted 7 months ago #

    Dan,

    Sorry I never get notifications of these posts so I tend to miss them. Apologies.

    Since it's a shortcode, it requires that shortcodes be applied to the widget's content, which I believe is not a default behavior.

    Perhaps the PollDaddy plugin applies shortcodes (or applies filters for 'the_content', which includes shortcodes) to Text Widget content...

  4. Andy Stratton
    Member
    Plugin Author

    Posted 7 months ago #

    You can install this plugin and you should be moving: http://wordpress.org/plugins/use-shortcodes-in-sidebar-widgets/

    Or, add the following line of code to your theme's functions.php file:

    add_filter( 'widget_text', 'do_shortcode' );

    Hope this helps!

  5. Dan & Jennifer
    Member
    Posted 7 months ago #

    Hey Andy!
    That worked!!! Thanks so much for the great recommendation!
    Went with the "Use Shortcodes in Sidebar Widgets" plugin, lol a 1-line plugin. Worked better for us since being a plugin it applies to all themes in use.
    AND we can finally do away with PollDaddy! :-)
    Have an awesome day!
    Dan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.