Here is the code in functions.php:
register_sidebar(array(
'name'=> 'Home Page Advanced Search',
'id' => 'custom'
));
register_sidebar(array(
'name'=> 'Profile Picture Upload',
'id' => 'pic upload'
));
Then, I use the two sidebars in my template like this:
?php if ( is_active_sidebar( 'custom' )) : ?>
<div id="widget-area">
<?php dynamic_sidebar( 'custom' ); ?>
</div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'pic upload' )) : ?>
<div id="upload-photo-area">
<?php dynamic_sidebar( 'pic upload' ); ?>
</div>
<?php endif; ?>
The sidebar with id='custom' works fine. I am able to put widgets in it in my dashboard and display them. The sidebar with id='pic upload' is not working correctly. All widgets that I put inside of it do not stay there (in the dashboard API) and, therefore, do not display on my page.
All help is appreciated. Thanks in advance.