>
Download This Plugin | |
Download Elegant Themes | |
Name | Display Last Post(s) |
Version | 1.0 |
Author | Francois Barret |
Rating | 100 |
Last updated | 2010-05-28 12:19:00 |
Downloads |
4520
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Display Last Post(s) plugin added 2 bytes of resources to the Home page and 1 bytes of resources to the sample Post page.
Display Last Post(s) plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Display Last Post(s) plugin ads no tables to your Wordpress blog database.Display Last Posts is a plugin that allows you to display the last post(s) (by default, the last one only) anywhere on your blog.
Official page and french translation : http://www.fb-graphic.com/bonus/display-last-posts-wordpress-plugin
Two ways are available: using a shortcode in posts or pages, within the CMS, or putting a small PHP code in a template of your theme.
shortcode : [last-posts] or [last-posts nb="5" cont="excerpt"]
code PHP : < ?php lastPosts('',''); ?> or < ?php lastPosts(5,'excerpt'); ?> (suppress space between < and ?)
The shortcode is: [last-posts] By default, only the last post is displayed, with its whole content. Optional arguments, ex.: [last-posts nb="5" cont="excerpt"] - with [nb] you specify the quantity of posts you want to display (always newest first), and with [cont="excerpt"] you specify that only the excerpt of the posts will be displayed.
The PHP code for templates is: < ?php lastPosts('',''); ?> By default, only the last post is displayed, with its whole content. Optional arguments, ex.: < ?php lastPosts(5,'extrait'); ?> - the first argument specify the number of posts to display (always newest first), and the second one specify that only the excerpt must be displayed.
Display Last Post(s) is widely inspired by the sc_liste() function given here: http://www.webinventif.fr/wordpress-creation-de-shortcode-avance/