0
iam最近下載一個叫做The Gossip的Wordpress主題,這個主題有一個簡碼功能,可以幫助你創建不同的東西,例如讓我們說我想顯示類別小工具中的最後5個帖子我的側邊欄,所有這些我所要做的,就是要粘貼代碼在Wordpress上使用短代碼
[posts cats="gadgets" images="true" image_width="80" image_height="80" title="true" per_page="5" cols="1" image_wrap="true" pagination="false" meta="false" read_more="false" title_size="14" name='"sidebardog" content="post" content_display="excerpt" excerpt_length="0" spacing="spacing-small"]
與主題沒有休息,我的問題是,如何才能使一個代碼從同一類別顯示在過去的5帖目前的職位。我試圖替換cats =「gadgets」 for cats =「the_category();」或cats =「」但它沒有奏效。
任何人有關於如何正確地做到這一點的任何想法?非常感謝關注,任何幫助將不勝感激!