<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(searchbar) ) : ?>
<?php endif; ?>
You are excluding with the !. That says if there is no dynamic sidebar, so WP would then be looking for code to display if the sidebar doesn’t exist.
THe markup I use in my html looks like:
<?php if ( is_active_sidebar( 'searchbar' ) ) : ?>
<div class="post post-widget-area hentry">
<ul class="xoxo">
<?php dynamic_sidebar( 'searchbar' ); ?>
</ul>
</div><!-- #first .widget-area -->
<?php endif; ?>
http://vudu.me/k
for a little writeup
Hey, thanks for your help, I wrote it out a little bit differently, but you were right about what I was doing wrong thank you. This is what I used (in the html file)
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('searchbar')) : else : ?>
<?php endif; ?>