[resolved] Adding a duplicate widget in 2.6 (5 posts)

  1. agentdhh
    Posted 7 years ago #

    I'm trying to add an additional wordtube widget to my theme. You used to be able to go into the widgets section and select how many widgets under a certain title you'd like.

    Can anyone tell me if you can still do this and where I find the options? I've looked everywhere.

  2. If the specific widget does not support having more-than-one, then you can't have more-than-one.

    Simple as that, really.

    If it's an old widget plugin, then the format for the multiple widget interface changed, and the plugin will need to be updated. A widget can either support 1 copy of itself or unlimited copies of itself now, there's no need to specify a specific number any more.

  3. agentdhh
    Posted 7 years ago #

    Thank you.

  4. acknowledged74
    Posted 7 years ago #

    Can you now duplicate the 'pages' widget ?

  5. Callum Macdonald
    Posted 7 years ago #

    You cannot duplicate the pages widget. There's no duplicating widgets any more, what you do now is keep adding as many as you need. So the Text widget for example, you add as many widgets as you want, there's no limit. But you don't need to decide in advance how many you want (that was the old system).

    If you want a second Pages widget, I wrote a really simple plugin to do that. However, it will only work properly if the widgets are on different sidebars. More specifically, you can only save the options for the widget if the two widgets are in different sidebars. If they are in the same sidebar, they'll both get the same options when you click save.

    The code is here if you're interested:

Topic Closed

This topic has been closed to new replies.

About this Topic