sidebar – how to call a sidebar php?
-
I have spent all morning trying to redo sidebars for different pages within my website (https://dev.naaw.net/wordpress)
I have managed to get ALOT done by reading the support forums, but there is ONE problem.
I have figured that within my archive.php I can call a NEW sidebar that works fine with all my posts. So thats okay, each time a new post comes in, I will have a new sidebar which works perfectlty fine.
But now, I have a few PAGES and I want each PAGE to have another sidebar of its own. I thought I could call them by using the following: (keep in mind my newsidebar is called sidebarabs)
<?php get_sidebarabs(); ?>
I used:
<?php include ('sidebar_news.php'); ?>
within my archive.php and it worked fine.My problem is that I KNOW NOT WHERE to put this new
<?php get_sidebarabs(); ?>
; because it is not a particular archive.php or category.php pr anything…. can I not pull it out throught the editor???
- The topic ‘sidebar – how to call a sidebar php?’ is closed to new replies.