Opened 15 years ago
Closed 15 years ago
#8734 closed enhancement (invalid)
Call Sidebars by Static Name, Not Dynamic Number
Reported by: | dcole07 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | reporter-feedback dev-feedback |
Focuses: | Cc: |
Description
When sidebars are call or referred to, it should be done by the (static) name given, not by the (dynamic) number when they get registered. If WordPress is going to stick with numbers, it should be like posts, where a (static) number is assigned for the life of the install. The problem with the current way, of referring to a sidebar by a number they get registered by WordPress, is that this number can change with the addition/subtraction of sidebars. That means the admin has to move and edit the widgets.
The widget arranger, as well as anything else that calls or references to Sidebars should use a static name for each sidebar, instead of a dynamic number.
Change History (5)
Note: See
TracTickets for help on using
tickets.
So.. Sounds like you should pass in the Static name and static ID when creating the sidebar, So as to select which one you want to show, as well as being able to refer to it in CSS, as well as solving the widget arranger problems..
ie:
the code to call those looks like: