dynamic sidebar 2 not showing selected widgets
-
I’ve registered my 2 sidebars in functions.php ok, and they both appear on the widget page in dashboard & allow me to drag widgets on to them as expected.
In sidebar.php I’ve got:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?> [then more old sidebar code that existed before I made it dynamic] <?php endif; ?>
Which works perfectly for sidebar 1
in sidebar2.php I have:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2)) : ?> [more old sidebar code] <?php endif; ?>
But sidebar 2 does not display the selected widgets. It only displays the [more old sidebar code] part instead.
Any ideas please?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘dynamic sidebar 2 not showing selected widgets’ is closed to new replies.