hey it’s not working
i add text widget to test in ‘index-insert’ widget area but not working it not working, but Showing “sorry, no posts matched your criteria”
i tried with all above code
this what i put the code
<div class="entry">
<?php the_excerpt(); ?><span class="read-more"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" class="btns"><?php _e('Read More', 'Behance'); ?></a></span>
</div>
<div class="fix"></div>
</div><!-- /.post -->
<div class="post-bottom">
<div class="fl"><span class="cat"><?php the_category(', ') ?></span></div>
<div class="fr"><?php the_tags('<span class="tags">', ', ', '</span>'); ?></div>
<div class="fix"></div>
</div>
</div><!-- /.box -->
<?php if ($count==0) { ?>
<?php dynamic_sidebar('index-insert') ?>
<?php } ?>
<?php $count = $count + 1; ?>
<?php endwhile; ?>
<div class="box">
<div class="post">
<p><?php _e('Sorry, no posts matched your criteria.', 'Behance') ?></p>
</div><!-- /.post -->
</div><!-- /.box -->
<?php endif; ?>
and in function.php
register_sidebar(array('name' => 'index insert','id' => 'index-insert','before_widget' => '<div id="%1$s" class="widget %2$s">','after_widget' => '</div>','before_title' => '<h3>','after_title' => '</h3>'));