I needed to create multiple sidebars for a WordPress website I am building. Thoughts By Mike figured he could do it with a simple file “include”. Turns out he is right… and it is simple too =)
Step 1: Create your new sidebar
Step 2: Include it
Themes generally use “get_sidebar” to display a sidebar:
<?php get_sidebar(); ?>
Include the new sidebar file instead:
<?php include (‘sidebar-projects.php’); ?>