fbpx

New Feature: Earn 12 Badges

Bild

Collect up to 12 exclusive badges by sharing your plugin collections and engaging with the community.

See all Badges
Widget or Sidebar Shortcode
Widget or Sidebar Shortcode

by Frank Staude

Description

This plugin implements 2 new shortcodes.

[widget name=”” classname=” instance=””] to use a widget per shortcode in the content area from a page/post.

name is the name of the widget, e.g. Calendar.
classname is the name of the PHP Class that implement the widget.
You can use name or classname.

So are [widget name=”Kalender” instance=”title=Hello,World!”]
and [widget classname=”WP_Widget_Calendar” instance=”title=Hello,World!”]
produce the same output.

instance are the attributs of the widget. e.g. title=Hello,World! so the complete shortcode is
[widget name=”Calendar” instance=”title=Hello,World!”]

For the instance list of the WordPress builtin Widgets look at https://codex.wordpress.org/Function_Reference/the_widget
For other Widgets look at the source code from the widget or ask the widget author.

[sidebar name=””] to use a sidebar (with all widgets) in the content area from a page/post.

name is the name of the sidebar e.g. Showcase Sidebar so the complete shortcode is
[sidebar name=”Showcase Sidebar”]

For own css styling, the plugin wraps the widgets in < div id=”Widget_Name” class=”widget_shortcode”> and the sidebar in < div id=”Sidebar_Name” class=”sidebar_shortcode”>

If your want report a bug or a feature, please use http://bugs.staude.net

Entrys in the changelog with numbers means the ticket id on
http://bugs.staude.net

All texts and images on this product page are protected by copyright and are the property of the author Frank Staude. You will be redirected to the retailer to download the plugin. We act solely as a search engine for plugins and are not affiliated with the retailer or Frank Staude.

Tags

Free Plugin

5.0
2 Reviews
Last Update
10 years ago
Installations
1,000
All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. The WordPress® trademark is the intellectual property of the WordPress Foundation

Get your first Badge

Code Newbie

Earn your first badge by sharing your collections. Every master was once a beginner. Welcome to your coding journey.

0 of 5 views reached

Collections

Create your first Collection

Click the symbol on the desired plugin to create a collection. The symbol appears when you hover over the plugin.