{"id":23491,"date":"2013-05-22T13:31:55","date_gmt":"2013-05-22T13:31:55","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/onespace-lastpost\/"},"modified":"2014-09-05T15:17:03","modified_gmt":"2014-09-05T15:17:03","slug":"onespace-lastpost","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/onespace-lastpost\/","author":12293037,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"trunk","tested":"4.0.38","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"OneSpace Last Post","header_author":"Ian Garcez","header_description":"","assets_banners_color":"","last_updated":"2014-09-05 15:17:03","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/onespace.com.br\/doacoes\/","header_plugin_uri":"http:\/\/onespace.com.br\/lastpost","header_author_uri":"http:\/\/onespace.com.br","rating":5,"author_block_rating":0,"active_installs":20,"downloads":2338,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"724494","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"724494","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"724494","resolution":"3","location":"assets"}},"screenshots":{"1":"<p>Plugin used on a post.<\/p>","2":"<p>Shortcode used.<\/p>","3":"<p>Plugin used on a widget, need additional plugin to make possible the use of shortcodes on widget.<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4978,86],"plugin_category":[],"plugin_contributors":[89912],"plugin_business_model":[],"class_list":["post-23491","plugin","type-plugin","status-publish","hentry","plugin_tags-latest-posts","plugin_tags-post","plugin_contributors-igrossiter","plugin_committers-igrossiter"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/onespace-lastpost.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/onespace-lastpost\/assets\/screenshot-1.png?rev=724494","caption":"<p>Plugin used on a post.<\/p>"},{"src":"https:\/\/ps.w.org\/onespace-lastpost\/assets\/screenshot-2.png?rev=724494","caption":"<p>Shortcode used.<\/p>"},{"src":"https:\/\/ps.w.org\/onespace-lastpost\/assets\/screenshot-3.png?rev=724494","caption":"<p>Plugin used on a widget, need additional plugin to make possible the use of shortcodes on widget.<\/p>"}],"raw_content":"<!--section=description-->\n<p>Veja descri\u00e7\u00e3o em portugues em: http:\/\/onespace.com.br\/lastpost\/<\/p>\n\n<p>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.<\/p>\n\n<p>Arguments:<\/p>\n\n<ol>\n<li>id - You can use any number of post categories ids separeted by commas<\/li>\n<li>num - the number of posts to return for wich categorie id<\/li>\n<li>info - this is where goes all the printing information<\/li>\n<\/ol>\n\n<p>Info printing arguments:<\/p>\n\n<ol>\n<li>thumb: returns the post's featured image, you must specify the width of the thumb after ':', has a link to the post<\/li>\n<li>title: returns the title, has a link to the post<\/li>\n<li>excerpt: returns the first lines from you post you can specify the lenght of the text to show and a subtext. excerpt:LENGTH:SUB-TEXT, has a link to the post<\/li>\n<li>content: returns all content from post<\/li>\n<li>date: returns date of post publishing, you can specify the format after ':'<\/li>\n<\/ol>\n\n<p>More about date:<\/p>\n\n<p>Date format uses php default formating symbols, here goes some of then;<\/p>\n\n<p>d: day of month\nm: month\ny: year<\/p>\n\n<p>it has some limitations, you can't use escape chars (yet).<\/p>\n\n<p>check the manual to see the complete list: http:\/\/php.net\/manual\/en\/function.date.php<\/p>\n\n<p>A few examples:<\/p>\n\n<p>[os_lastpost id=\"x,y,z\" num=2 info=\"title,date:d\/m\/y,thumb:130,excerpt:120: ... veja mais\"]<\/p>\n\n<p>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.<\/p>\n\n<p>[os_lastpost post_type=\"custom_post_type\" num=5 info=\"title,excerpt\"]<\/p>\n\n<p>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\"<\/p>\n\n<p>[os_lastpost post_type=\"post\" num=5 info=\"title,content\"]<\/p>\n\n<p>returns the latest 5 posts from all your categories, printing title, and full content<\/p>\n\n<h3>Arbitrary section<\/h3>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<p>e.g.<\/p>\n\n<ol>\n<li>Unzip and upload <code>os-lastpost<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use the shortcode described on the description in your site<\/li>\n<li>If you need to use the shortcode on a widget, it is possible with a additional plugin<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>I need a list on a widget<\/dt>\n<dd><p>Get a plugin that allows you to use any shortcode on widgets, thats fairly easy to find here on wp plugin repository.<\/p><\/dd>\n<dt>How do I found out the ID from a category?<\/dt>\n<dd><p>Go to Admin &gt; posts &gt; categories, mouse over the category that you need, and check the ID on the link.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<p>inicial version<\/p>","raw_excerpt":"Provides a shortcode to get the latest posts on the blog, for one or more categories or a post_type.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23491"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/igrossiter"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23491"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23491"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23491"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23491"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23491"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}