Nooby "show content based on taxonomy choice" question
-
Hi every one.
So i have a custom taxonomy with 2 options. One option is A and the other one is B.
I want to condition my page to show content based on my choice of taxonmy. If i select option A , it will only show option A.
Something like this.
<?php if( is_category('a') ) : ?> <?php include (TEMPLATEPATH . '/custompage1.php'); ?> <?php elseif( is_category('b') ) : ?> <?php include (TEMPLATEPATH . '/custompage2.php'); ?> <?php endif; ?>
I Assume since im using custom taxonomy, this code didnt work.
Thank you
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Nooby "show content based on taxonomy choice" question’ is closed to new replies.