[wp-hackers] Trouble With Custom Sidebars

Muhammad Ali mjsafoxy at gmail.com
Thu Sep 8 21:54:35 UTC 2011


Why don't you just mod sidebar.php ?

On 8 September 2011 22:49, Cailen McQuattie <cailen at kmsm.ca> wrote:

> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list