Revision: 23464
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 8, 2010 10:33 by hstothard
Initial Code
-----------------------------------
Functions.php
-----------------------------------
if ( function_exists('register_sidebar') )
register_sidebar(array('name'=>'sidebar1',
'description' => 'This shows in admin widget header.',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
register_sidebar(array('name'=>'sidebar2',
'description' => 'This shows in admin widget header.',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
-----------------------------------------
Sidebar.php
-----------------------------------------
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar('sidebar1') ) : ?>
<?php endif; ?>
-----------------------------------------
Sidebar2.php
-----------------------------------------
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar('sidebar2') ) : ?>
<?php endif; ?>
Initial URL
Initial Description
Initial Title
Wordpress - 2 or more sidebars
Initial Tags
wordpress
Initial Language
PHP