S

Shortcodes in Sidebar

5/5 (2 ratings) 400 active installs Updated Aug 10, 2026

Paste a shortcode into a Custom HTML widget and WordPress prints it exactly as you typed it — [contact-form], square brackets and all — instead of running it. This plugin fixes that, and nothing else.

What changed since version 3.0

When this plugin was written in 2011, WordPress ran no shortcodes in any widget, and one line of code fixed it for every sidebar on the site. WordPress has caught up since:

  • Text widget — core has run shortcodes since WordPress 4.8.
  • Block widgets — core has run shortcodes since WordPress 5.8.
  • Custom HTML widget — core still does not, on any version, including 7.0.

So the plugin now does the one thing that is still missing. Where core already handles shortcodes, it deliberately stays out of the way — running them a second time is not a feature.

If you have been using version 3.0 on a recent WordPress, this release is also a bug fix. The old code hooked shortcodes onto the Text widget in a way that made core skip its own, correctly ordered pass, and shortcode output could come out with paragraph tags injected into the middle of it. That no longer happens.

Features

  • Shortcodes run in the Custom HTML widget, in every sidebar and widget area.
  • No settings, no setup. Activate it and it works.
  • No database tables, no options, no scripts, no styles, no tracking, no ads, no upsells.
  • Nothing to clean up when you delete it, because it stores nothing.

Privacy

The plugin collects nothing, stores nothing, and makes no external requests.