diffrent single.php for taxonomy slug
-
Hello,
I am trying to get a taxonomy slug to open a diffrent taxonomy single.php
I tryed
<?php $post = $wp_query->post;
if(appthemes_get_custom_taxonomy(‘slug’, $post->ID, APP_TAX_STORE) == ‘name’) {
include(TEMPLATEPATH . ‘/single-coupon-1.php’);
} else {
include(TEMPLATEPATH . ‘/single-coupon-2.php’);
}
?>
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]I would like to get diffrent Stores in this taxonomy to open in diffrent single.php.
But I failed (name = Storename)
I can show the store name with this php code:
<?php echo appthemes_get_custom_taxonomy($post->ID, APP_TAX_STORE, ‘slug’); ?>
Any body can help???
- The topic ‘diffrent single.php for taxonomy slug’ is closed to new replies.