{"id":6519,"date":"2009-08-21T20:56:03","date_gmt":"2009-08-21T20:56:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/nurelm-get-posts\/"},"modified":"2013-12-23T19:25:15","modified_gmt":"2013-12-23T19:25:15","slug":"nurelm-get-posts","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/nurelm-get-posts\/","author":4059465,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.6","stable_tag":"0.6","tested":"3.7.41","requires":"2.5.1","requires_php":"","requires_plugins":"","header_name":"NuRelm Get Posts","header_author":"Sami Shaaban","header_description":"","assets_banners_color":"","last_updated":"2013-12-23 19:25:15","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.nurelm.com\/themanual\/2009\/08\/21\/nurelm-get-posts\/","header_author_uri":"http:\/\/www.nurelm.com\/","rating":5,"author_block_rating":0,"active_installs":400,"downloads":22371,"num_ratings":3,"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":"3"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.3","0.4","0.5","0.6"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1975,46558,245,86,166],"plugin_category":[43,46],"plugin_contributors":[81417],"plugin_business_model":[],"class_list":["post-6519","plugin","type-plugin","status-closed","hentry","plugin_tags-formatting","plugin_tags-get_posts","plugin_tags-list","plugin_tags-post","plugin_tags-posts","plugin_category-customization","plugin_category-editor-and-writing","plugin_contributors-nurelm","plugin_committers-nurelm"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/nurelm-get-posts.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin adds the ability to put a shortcode tag in any static page or post and have it display a list of posts using the get_posts template tag. For more detailed information about this plugin, please check out its <a href=\"http:\/\/www.nurelm.com\/themanual\/2009\/08\/21\/nurelm-get-posts\/\">home page<\/a>.<\/p>\n\n<p>By default it will show the 5 most recent posts ordered in reverse date order,\nbut it will accept any of the options provided by the <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/get_posts\">get_posts template tag<\/a>.<\/p>\n\n<p>To use it, just put the following into the HTML of any page or post, use as many times as you like on the same page:<\/p>\n\n<pre><code>[get_posts]\n<\/code><\/pre>\n\n<p>This default usage will return the last 5 posts in reverse chronological order.\nAlong with all the options provided by the get_posts template tag, it will also\naccept a few additional options:<\/p>\n\n<ul>\n<li><p>ul&#095;class. This is the class assigned to the bullet list, with a default of \"get_posts_class\".<\/p><\/li>\n<li><p>fields. This is a comma separated list of fields to show, taken right from the <a href=\"http:\/\/codex.wordpress.org\/Database_Description\/2.7#Table:_wp_posts\">wp_posts database table fields<\/a>.  Some of the more interesting fields you can use in this list include post_title, post_date, and post_excerpt (you'll find more in the table description referenced above).  The default is \"post_title\". In addition to standard fields, you can also use \"post_featured_image\" here to pull the corresponding featured image, or \"custom_text\" to add your own text.<\/p><\/li>\n<li><p>fields&#095;classes.  Another comma separated list that lets you assign a class to each of the fields specified above, which will be provided via a  tag wrapped around the field.  The default value for this list is \"post_title_class\".<\/p><\/li>\n<li><p>fields&#095;make&#095;link.  One more comma separated list that lets you choose which of your fields are links to the post.  It is a list of either \"true\" or \"false\" values ... values of \"true\" make the corresponding field a link. The default is \"true\".<\/p><\/li>\n<li><p>post&#095;featured&#095;image&#095;size. Defaults to \"thumbnail\" but can also be \"medium\", \"large\" and \"full\" (the size of the image you uploaded).<\/p><\/li>\n<li><p>custom&#095;text&#095;value. If you choose \"custom_text\" as one of the fields to display, this is what will be displayed.<\/p><\/li>\n<\/ul>\n\n<p>A couple of examples:<\/p>\n\n<pre><code>[get_posts tag=\"my favorite tag\" numberposts=5 orderby=\"title]\n<\/code><\/pre>\n\n<p>Shows a bulleted list consisting of the titles of 5 posts with the tag \"my favorite tag\" ordered by title.<\/p>\n\n<pre><code>[get_posts tag=\"my favorite tag\" fields=\"post_title, post_date, post_excerpt, post_featured_image, custom_text\" fields_classes=\"class1, class2, class3, class4, class5\" fields_make_link=\"true, false, false, false, true\", custom_text_value=\"Read More\"]\n<\/code><\/pre>\n\n<p>Shows a bulleted list consisting of the titles, post dates, and excerpts of posts with the tag \"my favorite tag\".  The title will be wrapped in a  tag with a class of \"class1\", the date with a  of class \"class2\", and the excerpt with \"class3\".  Only the title will provide a link to the post. Also shows the post's featured image (in thumbnail size) and \"Read More\".<\/p>\n\n<p>Check the <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/get_posts\">get_posts template tag<\/a> documentation for all of the possible options associated with the tag, and the <a href=\"http:\/\/codex.wordpress.org\/Database_Description\/2.7#Table:_wp_posts\">wp_posts database table fields<\/a> for all possible field names.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to the <code>\/wp-content\/plugins\/<\/code> directory and unzip it.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Place <code>[get_posts]<\/code> in your pages. Check the <a href=\"http:\/\/www.nurelm.com\/themanual\/2009\/08\/21\/nurelm-get-posts\/\">plugin homepage<\/a> for detailed options and more complex uses.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>Check the <a href=\"http:\/\/www.nurelm.com\/themanual\/2009\/08\/21\/nurelm-get-posts\/\">plugin homepage<\/a><\/p>\n\n<!--section=changelog-->\n<h4>0.6<\/h4>\n\n<ul>\n<li>Added featured_image and custom_text field options<\/li>\n<li>Tested in WP 3.8<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Update readme and copyright<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>Tested with WP 3.7<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Tested with WP 3.0.1<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added the fields, fields_classes, and fields_make_link attributes.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Adds a shortcode tag [get_posts] to display a list of posts within any static page or post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/6519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=6519"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/nurelm"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=6519"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=6519"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=6519"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=6519"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=6519"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=6519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}