• Hello.

    Today I was experimenting with registering sidebars based on dynamic data, in this case the categories in the current wordpress installation.

    Doing the basic dynamic registration proved to be very simple but when I created more categories a problem popped up. The new categories changed the order the sidebars are registered and it seems that WordPress identifies the sidebars by their order, not their name or some other unique identifier.

    Is this correct? In that case even removing a sidebar you had registered the regular way could have dire consequences.

    Say that you have three sidebars registered and decide you don’t want the second one. Removing the second one would in this case mean that the third sidebar (which now becomes the second one) gets the widgets the old second sidebar had.

    Kindly, Marcus.

The topic ‘Registering sidebars dynamically’ is closed to new replies.