0
我在我的custom_functions.php中設置了一個自定義循環。循環的基本思路是這樣的顯示重複內容的WordPress自定義循環
function category() {
if (is_category(3557)) {
News Category content
}
else{
Main categories content
}
}
也能正常工作的所有主要類別,但新聞頁面上我展示新聞內容,然後在主網站內容。
你的代碼是斷章取義的,但如果你的「新聞」類別是3557然後在'news'category archive page only that the first part that that should run,not both。我認爲問題在別處。 – 2013-03-14 18:17:17