Provides a shortcode to get the latest posts on the blog, for one or more categories or a post_type.
Veja descrição em portugues em: http://onespace.com.br/lastpost/
This plugin provides you with a shortcode that returns the latest posts from specifics categories or post_types, you can choose how many posts is to be show or what kind of information you can get from posts.
Info printing arguments:
More about date:
Date format uses php default formating symbols, here goes some of then;
d: day of month m: month y: year
it has some limitations, you can't use escape chars (yet).
check the manual to see the complete list: http://php.net/manual/en/function.date.php
A few examples:
[os_lastpost id="x,y,z" num=2 info="title,date:d/m/y,thumb:130,excerpt:120: ... veja mais"]
returns the latest 2 posts from post categories x, y and z, printing the date on Day/Month/Year, featured image 130 px of width, 120 chars from post content (html stripped) and a custom text " ... veja mais" at the end.
[os_lastpost post_type="custom_post_type" num=5 info="title,excerpt"]
returns the latest 5 posts from a custom post type, printing title, and the first 60 chars from the post content and a default text " ... read more"
[os_lastpost post_type="post" num=5 info="title,content"]
returns the latest 5 posts from all your categories, printing title, and full content
Requires: 3.0.1 or higher
Compatible up to: 4.0.12
Last Updated: 2 years ago
Active Installs: 100+
Got something to say? Need help?