今天想在wordpress做嘅野就係整個featured Posts Page.
因為有時會有D posts想成日都俾人睇到, 唔想佢地因為時日而慢慢變成archive跟住沉底. 我嘅方法就係整個static嘅Page, 然後擺我D featured Posts嘅extract落去, 研究咗成個下晏, 最後都做到, 不過都幾複雜.
首先我試咗呢個Inline Posts Plugin for WordPress, 佢都幾似樣下, 已經做到大部份, 但係冇咗個more tag, 如果個Featured Posts Pages有幾個posts, D人就剩係會見到第一個, 徐非佢慢慢scroll咁睇.
跟住就搵到呢個link: WordPress Tip: How to Display a Specific Post Anywhere You Want, 但係裝咗get a post 同 Content Extract兩個plugins 都係未work.
最後裝埋Exec-PHP plugin for WordPress 同 Deactivate Visual Editor 就可以embed get a post同 Content ExtractD PHP codes 落個featured Posts Page 到.
咁就可以剩係display個post title同頭 20行喇, 係咪好複雜呢??
Leave a Reply