Shortcodes in Sidebar

Shortcodes in Sidebar allows shortcodes to execute in sidebars.

Author:Pankaj Anupam (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:7.0.4
Plugin version:26.0
Added to WordPress repository:05-12-2011
Last updated:10-08-2026
Rating, %:100
Rated by:2
Plugin URI:https://www.pankajanupam.com/wordpress-plugin...
Total downloads:16 467
Active installs:400+
plugin download
Click to start download

Paste a shortcode into a Custom HTML widget and WordPress prints it exactly as you typed it —

Error: Contact form not found.

, 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.


FAQ
ChangeLog