just wanna touch the include specific files tips for sidebar
if you have additional sidebar like for single or archive you can do it like the following (WP2.5.x)
get_sidebar($name); // arg $name is sidebar-"name".php
the function will look for sidebar-single.php (inside theme dir) and load it if exists otherwise it will load the default sidebar.php.
you can include section base sidebar base on wordpress hierarchical order. below is just a simple example (need to tweak it base on which section came first thought)
if (is_single()){
get_sidebar('single'); // include /theme/sidebar-single.php
} elseif (is_archive()){
get_sidebar('archive'); // include /theme/sidebar-archive.php
} else {
get_sidebar();
}
An avid fan of business, education, technology and finance. I lead a lean, highly focussed and capable team of Java Back End developers and Front End developers through a maze of complex software wizardry to fulfill the web maintenance needs of a large chemical manufacturer. As per Myers-Briggs Personality Types, I am an ESTJ. I pride in a project completed on time and according to plan. My hobbies include all kinds of technology, anything that I can taste and anything that goes fast or flies in the air. I like to read business books and comics in my spare time.
thanks for mentioning me!
just wanna touch the include specific files tips for sidebar
if you have additional sidebar like for single or archive you can do it like the following (WP2.5.x)
get_sidebar($name); // arg $name is sidebar-"name".php
the function will look for sidebar-single.php (inside theme dir) and load it if exists otherwise it will load the default sidebar.php.
you can include section base sidebar base on wordpress hierarchical order. below is just a simple example (need to tweak it base on which section came first thought)
if (is_single()){
get_sidebar('single'); // include /theme/sidebar-single.php
} elseif (is_archive()){
get_sidebar('archive'); // include /theme/sidebar-archive.php
} else {
get_sidebar();
}
thanks for the tip ChaosKaizer
Pretty simple but got the point. Thx