Dynamic sidebar is a name for an area in your theme that can accept widgets.
Perhaps wrongfully called 'sidebar', it can be referenced anywhere allowing you great flexibility with your theme. Here is the example of available widget areas in a fully implemented dynamic sidebar setup.
Registering dynamic sidebars where you want them
The idea is to think of areas in your theme where you want to be able to easily use the functionality of widgets. Prime candidates are usually footer, single post (before and after), sometimes even header.
Next step is to register the sidebar. Let's say we want to create a dynamic widget area before your posts. Usually you will add something like this to your functions.php
register_sidebar(array( 'name' => 'Single Top', 'id' => 'single-top', 'before_widget' => '
", 'after_title' => "" ));
Then open single.php and somewhere at the top of your post loop (before call to the_content() ) add:
- ' ;