您好,我试图打开一个特定的single.php如果特定的“料”,从我的分类转发。的single.php分类学蛞蝓
我这样做有作者:
<?php $post = $wp_query->post;
if(get_the_author_meta('user_nicename', $post->post_author) == 'name') {
/* Do your author-specific work */
include(TEMPLATEPATH . '/single-coupon-1.php');
} else {
include(TEMPLATEPATH . '/single-coupon-2.php');
}
?>
,但我需要为我的分类
我的分类是
<?php echo appthemes_get_custom_taxonomy($post->ID, APP_TAX_STORE, 'slug'); ?>
现在如果蛞蝓是(只是一个例子)“亚马逊“应该使用单张优惠券2.php。
我tryed很多,但总是收到错误!而现在,我迷失在混乱中; - )...
感谢和任何帮助表示赞赏!
还遗失了几乎所有的东西,有没有人有想法 – theo69