code to use diffrent single.php
-
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???
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘code to use diffrent single.php’ is closed to new replies.