wordpress不一样归类下降用不一样文章内容single模


2 if ( in_category(array(8,9,10)) ) { 3 include(TEMPLATEPATH . '/single1.php'); 4 } 5 elseif ( in_category(array(1,2,3))){ 6 include(TEMPLATEPATH . '/single2.php'); 7 } 8 else { 9 include(TEMPLATEPATH . '/single3.php'); 10 } 11 ?

?phpif( in_category(array(8,9,10)) ) {include(TEMPLATEPATH . '/single1.php');}elseif( in_category(array(1,2,3))){include(TEMPLATEPATH . '/single2.php');}else{include(TEMPLATEPATH . '/single3.php');}?>

2020 年 7 月 3 日

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://zmjldkxcx.cn/ziyuan/3965.html