Travel

Categories

WordPress customization : Add Featured Posts Pages

今天想在wordpress做嘅野就係整個featured Posts Page.

featured posts pages

因為有時會有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 postContent Extract兩個plugins 都係未work.

最後裝埋Exec-PHP plugin for WordPress Deactivate Visual Editor 就可以embed get a postContent ExtractD PHP codes 落個featured Posts Page 到.
featured posts pages

咁就可以剩係display個post title同頭 20行喇, 係咪好複雜呢??

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>