Hi,
I defined two Sidebars in my functions.php:
<?php
register_sidebars(1, array(
'name' => 'left-sidebar',
'id' => 'left-sidebar',
'before_widget' => '<div id="%1$s" class="%2$s widget">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'
) );
register_sidebars(2, array(
'name' => 'right-sidebar',
'id' => 'right-sidebar',
'before_widget' => '<div id="%1$s" class="%2$s widget">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>'
) );
?>
However, when I call one sidebar in my sidebar.php like this:
<ul class=”sidebar”>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
<li>…</li>
<?php endif ?>
</ul>
</div>
It just returns the <div><ul><li>...</li></ul></div>
and when using if_home(); or other conditional (PHP) tags, the entire sidebar.php is not called (as it seems to crash).
It worked before with one sidebar registered alone, and did work incorrectly when I used the dynamic_sidebar() funtion without any php following, but I cannot reproduce this anymore..
HELP! please.. how do I get to know, what's going wrong, and do you have any idea about it?