Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#5615 closed enhancement (fixed)

Update get_sidebar to work with multiple sidebars (diff attached)

Reported by: AaronCampbell Owned by:
Priority: normal Milestone: 2.5
Component: General Version:
Severity: normal Keywords: has-patch tested-working
Cc: Focuses:

Description

It would be really nice to allow multiple sidebars (left and right) that could be managed in multiple sidebar files in a template. Adding two lines and one optional parameter to the get_sidebar() function would allow you to pass a sidebar name. For example, get_sidebar('left') would load the template TEMPLATEPATH . 'sidebar-left.php'

Attachments (1)

wordpress-general-template.diff​ (721 bytes ) - added by AaronCampbell 19 years ago.

Download all attachments as: .zip

Change History (7)

#1 @thee17
19 years ago

  • Keywords has-patch tested-working added
  • Milestone 2.6 → 2.5

+1 I like this, and would support its addition to 2.5 possibly, as it really doesnt effect anything else but adds options for templating without breaking old templates.

#3 @ryan
19 years ago

  • Resolution → fixed
  • Status new → closed

(In [6609]) Get named sidebars. Props AaronCampbell. fixes #5615

#4 follow-up: @AaronCampbell
19 years ago

Thanks for committing that. What exactly is that props link? It seems to go nowhere.

#5 in reply to: ↑ 4 ; follow-up: @filosofo
19 years ago

Replying to AaronCampbell:

What exactly is that props link? It seems to go nowhere.

Mediawiki automatically makes links to words that are ​camel case, which your username is, whether or not it goes anywhere.

#6 in reply to: ↑ 5 @AaronCampbell
19 years ago

Replying to filosofo:
Thanks. I guess I'll see a bunch of those then.

Note: See TracTickets for help on using tickets.