2012-07-22 102 views

回答

1
the_category(); 

或者,如果你想列出類別後,逗號deliminated:

the_category(', '); 

抄本是你的朋友 - http://codex.wordpress.org/Function_Reference/the_category

+0

它不工作。 – 2012-07-22 14:08:15

+0

發生了什麼?有沒有輸出?或者只是您希望輸出的空白空間? – m1ket 2012-07-22 14:10:42

+1

是的,空白。但我找到了一個解決方案:http://codex.wordpress.org/Function_Reference/get_the_terms。這是工作;) – 2012-07-22 14:26:10

相關問題