Conditional Tags—>Different sidebars
-
I’ve been trying to load a specific sidebar for specific pages. So far, I have a function that works pretty well…
<?php if (is_page(‘3’) ) { ?>
<?php include (‘about_sidebar.php’); ?>
<?php } ?>However, I would like to make it more dynamic, preferably by author or some sort of category. I’ve tried this function below, but nothing loads.
<?php if (is_author(‘ABOUT’) ) { ?>
<?php include (‘about_sidebar.php’); ?>
<?php } ?>Any tips on how to get my function to be “dynamic” in terms of allowing me to discriminate my pages either by author or some sort of category (is their a category plugin for pages that I could possibly use?).
Thanks
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Conditional Tags—>Different sidebars’ is closed to new replies.