Pages and different Sidebar
-
I have istalled WP 1.5, and I have insert some Pages (ex. https://www.website.com/?page_id=8 , https://www.website.com/?page_id=7 )
Now i have upload in a /wp-contet/themes/default another sidebars (ex. sidebar_banda.php, sidebar_ocarine.php)Can you help me to modify my php script for use a sidebar for pages..
Mi script is
<?php
if ( is_page(‘Banda’) ) {
?>
<?require(TEMPLATEPATH . ‘/sidebar_banda.php’); ?>
<?php
}
elseif ( is_page(‘Ocarine’) ) {
?>
<?require(TEMPLATEPATH . ‘/sidebar_ocarine.php’); ?>
<?php
}
elseif ( is_page(”) ) {
?>
<?php get_sidebar(); ?>
<?php
}
?>it’s possible to use ID pages and not “Banda” ??
it’s possible to set many Pages for one sidebar in one line ?
ex.
if ( is_page(‘Banda’,’Foto’,Prova’) ) {
?>
<?require(TEMPLATEPATH . ‘/sidebar_banda.php’); ?>
<?php
}thanks
- The topic ‘Pages and different Sidebar’ is closed to new replies.