[wp-hackers] Trouble With Custom Sidebars

Cailen McQuattie cailen at kmsm.ca
Thu Sep 8 21:49:52 UTC 2011


Howdy hackers,

I'm having trouble integrating custom sidebars in different templates.
It seems no matter what, the default sidebar is called every time.

Ex1: I delete get_sidebar() altogether. The default sidebar.php file
is still called and displayed.
Ex2: I add a parameter 'custom' -> get_sidebar('custom') on
page-{slug}.php. Default sidebar.php is still called, AND
sidebar-custom.php is also called.

Obviously I just wanted sidebar-custom.php to be displayed. What the heck?

Thanks for any insight you can provide!

Cailen McQuattie


More information about the wp-hackers mailing list