WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Display Last Post(s)

Allows to display the last post(s) anywhere on your WordPress site/blog, using a shortcode or a short PHP code (for the templates).

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/

Requires: 1.5 or higher
Compatible up to: 2.9.2
Last Updated: 2010-5-28
Downloads: 4,436

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
0,1,0
0,1,0
100,2,2
100,1,1