• Hello

    I have two sidebars in my widgets panel.
    I want to use the same widget/plug-in in both sidebars. When I add the widget to one sidebar in becomes unavailable to the other sidebar.

    Any idea how I can get the same widget in both sidebars?

    Cheers

    Barry

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s dependent on the widget code. In other words, it has to be designed into the widget. The standard WordPress text widget can have multiple instances, for example.

    How would you go about enabling a widget to be able to do this? If it’s dependent on the widget code, how do you modify the code to make it work?

    @jburas – There’s an example right in the WordPress code… take a peek in wp-includes/widgets.php and you’ll see some heavily commented multi-widget code at the very end of the file.

    (WARNING: Use the “uncommented” code for the Text widget as your example; since it’s not commented out it should be well debugged. The commented out section of code may not be as up to date.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Widgets- More than one instance of a plugin one a sidebar’ is closed to new replies.