Custom sidebars problem?
-
Ok, i want to add custom sidebar to display on my index.php page. The second sidebar (which will be shown on index.php page) should be widgetized.
I found several instructions on the net, managed to do it, and here’s how it goes:
I insert the code in functions.php file
<?php if ( function_exists ('register_sidebars')) { register_sidebars ('2'); }
I created a file sidebar-2.php and put the following code in it
<?php if ( function_exists('dynamic_sidebar')&&dynamic_sidebar(2) ) : else : ?> <?php endif; ?>
And eventually called that file from index.php with
<?php get_sidebar(2) ?>
And, instead of widgets, i see this message
??<??php if ( function_exists('dynamic_sidebar')&&dynamic_sidebar(2) ) : else : ?> <??php endif; ?>
What might be the problem?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom sidebars problem?’ is closed to new replies.