Sidebar for wordpress page

//to include the sidebar on your page
<?php include(TEMPLATEPATH . '/sidebar-contact.php'); ?>

//for the sidebar-test.php file
<div id="sidebar">

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar( 2 ) ) : ?>

<?php endif; ?>

</div><!-- /sidebar -->

0 Comments

You must be logged in to post a comment.