Plugin info

Total downloads: 134
Active installs: 20
Total reviews: 1
Average rating: 5
Support threads opened: 2
Support threads resolved: 1 (50%)
Available in: 1 language(s)
Contributors: 4
Last updated: 2/20/2023 (1045 days ago)
Added to WordPress: 2/14/2023 (2 years old)
Minimum WordPress version: 6.0
Tested up to WordPress version: 6.1.1
Minimum PHP version: 7.4

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1045 days ago • Support resolved 50% • 1 reviews

22/100

Is WidgetShortcode abandoned?

Possibly abandoned (last update 1045 days ago).

Compatibility

Requires WordPress: 6.0
Tested up to: 6.1.1
Requires PHP: 7.4

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

WidgetShortcode is a WordPress plugin allowing you to turn any widget into a WordPress shortcode or display a widget with a dedicated block. The shortcodes can then be used in posts, pages, and more.

It also has a dedicated block, making it easier to select a widget to show in the Block Editor.

It works great in the classic WordPress editor, but also in the block editor (for widgets that don’t have a Gutenberg block) and other page builders. This way you are not limited to only sidebars and your choice of editing tools is not based on the block functionality of the plugins.

Automatic mode – WidgetShortcode block

This block can render any widget located in the WidgetShortcode position. First add widgets to the dedicated widget area. Then place the WidgetShortcode block, click it and select one of the widgets from the drop-down list.

Manual mode – the shortcode

The plugin adds a shortcode to every widget. You can copy this shortcode and paste it anywhere in WordPress. This alternative to automatic mode can be used if:
* You are not using the block editor
* You prefer to use a different block to render the shortcode
* You want to use one of the advanced parameters

Manual mode – advanced parameters

You can use additional parameters below to override HTML, CSS classes and ids. This section is for advanced users!

  • title
    • Overrides the widget title
    • Set to 0 (zero) to disable the title
  • title_tag
    • HTML tag to use for the widget title wrapper
    • Default: h2
  • title_class
    • CSS class for the widget title wrapper
    • Default: widgettitle
  • container_tag
    • HTML tag to use as the widget container
    • Default: div
  • container_class
    • CSS classname added to the widget container
    • Default: widget %2$s
    • Uses sprintf() and can crash your website if used incorrectly
  • container_id
    • HTML ID attribute for the widget container
    • Default: %1$s
    • Uses sprintf() and can crash your website if used incorrectly

Special thanks

  • shazdeh – for the original code
  • rsusanto – for JavaScript debugging
  • Helen Bedd – for testing
  • WordFence and Lana Codes – for insights into the original plugin’s vulnerabilities

Installation

No installation instructions available

Frequently Asked Questions

No FAQ available

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.1.0

  • Fixed the WidgetShortcode block crashing on WordPress 6+
  • Refactored WidgetSHortcode block deprecations to work with WordPress 6.2

1.0.2

  • 2023-02-12
  • Attempt to rebuild widget and sidebar database with retrieve_widgets(TRUE) upon activation and with a custom $_REQUEST parameter

1.0.1

  • 2023-02-12
  • Improved PHP 8 compatibility

1.0.0

  • 2023-02-13
  • Forked from Widget Shortcode
  • Fixed a known XSS vulnerability
  • Improved code quality, new code standards, PHP 8.2 compatibility
  • Renamed internal classes, constants, widget position, script handles etc. to avoid conflicts with old Widget Shortcode
  • Release on WordPress.org