{"id":27388,"date":"2014-01-23T19:49:11","date_gmt":"2014-01-23T19:49:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/super-recent-posts-widget\/"},"modified":"2020-01-21T16:32:07","modified_gmt":"2020-01-21T16:32:07","slug":"super-recent-posts-widget","status":"publish","type":"plugin","link":"https:\/\/lo.wordpress.org\/plugins\/super-recent-posts-widget\/","author":28125,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.3.0","stable_tag":"0.3.0","tested":"5.3.21","requires":"3.6","requires_php":"","requires_plugins":"","header_name":"Super Recent Posts Widget","header_author":"Mat Gargano, StatenWeb","header_description":"","assets_banners_color":"806d62","last_updated":"2020-01-21 16:32:07","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.matgargano.com","rating":5,"author_block_rating":0,"active_installs":50,"downloads":5975,"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":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1794440","resolution":"128x128","location":"assets","locale":"","width":128,"height":128}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1794440","resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1794440","resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.3","0.1.4","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.6","0.2.7","0.3.0","temp"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"844086","resolution":"1","location":"assets","locale":"","width":880,"height":950}},"screenshots":{"1":"Screenshot of widget"}},"plugin_section":[],"plugin_tags":[86,162],"plugin_category":[43],"plugin_contributors":[84995,84996],"plugin_business_model":[],"class_list":["post-27388","plugin","type-plugin","status-publish","hentry","plugin_tags-post","plugin_tags-widget","plugin_category-customization","plugin_contributors-matstars","plugin_contributors-statenweb","plugin_committers-matstars"],"banners":{"banner":"https:\/\/ps.w.org\/super-recent-posts-widget\/assets\/banner-772x250.jpg?rev=1794440","banner_2x":"https:\/\/ps.w.org\/super-recent-posts-widget\/assets\/banner-1544x500.jpg?rev=1794440","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/super-recent-posts-widget\/assets\/icon-128x128.jpg?rev=1794440","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/super-recent-posts-widget\/assets\/screenshot-1.png?rev=844086","caption":"Screenshot of widget"}],"raw_content":"<!--section=description-->\n<p>Drag and drop the widget and fill out the appropriate fields. Some notes:<\/p>\n\n<p>To display posts from a specific post type leave Taxonomy as \"-- No Specific Taxonomy --\"<\/p>\n\n<p>If you leave order by and\/or order as \"-- Choose order parameter --\" and\/or \"-- Choose orderby parameter --\" it will go with WordPress' default(s), <a href=\"http:\/\/codex.wordpress.org\/Class_Reference\/WP_Query#Order_.26_Orderby_Parameters\">see here<\/a> for more information.<\/p>\n\n<p>The following filters are available:<\/p>\n\n<ul>\n<li><strong>srpw_get_args<\/strong> to override arguments of main query for the widget.<\/li>\n<li><strong>srpw_template<\/strong> to override the output template for the widget, see below for more information.<\/li>\n<li><strong>srpw_WIDGET_NAME_template<\/strong> to override the output template for the widget on a widget by widget basis, the WIDGET_NAME appears on the back-end in the widgets window see below for more information.<\/li>\n<li><strong>widget_title<\/strong> this is a WordPress core filter <a href=\"http:\/\/codex.wordpress.org\/Plugin_API\/Filter_Reference\">see here<\/a> for more information.<\/li>\n<li><strong>srpw_post_types<\/strong> to override the post types available for this widget.<\/li>\n<li><strong>srpw_taxonomies<\/strong> to override the taxonomies available for this widget.<\/li>\n<\/ul>\n\n<h4>Usage of srpw_template filter<\/h4>\n\n<p>Add a \"views\" directory and file named \"custom-srpw.php\" to your template directory. The \"custom-srpw.php\" file will be your custom template for this example.<\/p>\n\n<h4>Example of using a custom template from within your theme pre-PHP 5.3<\/h4>\n\n<pre><code>    &lt;?php\n\n        function customize_srpw_template_filter( $template ){\n            $template_dir = get_template_directory();\n            return $template_dir . '\/views\/custom-srpw.php';\n        }\n        add_filter( 'srpw_template', 'customize_srpw_template_filter' );\n        ?&gt;\n<\/code><\/pre>\n\n<h4>Example of using a custom template from within your theme PHP 5.3+ which allows anonymous functions<\/h4>\n\n<pre><code>    &lt;?php\n\n        add_filter( 'srpw_template', function ( $template ){\n            $template_dir = get_template_directory();\n            return $template_dir . '\/views\/custom-srpw.php';\n        } );\n        ?&gt;\n<\/code><\/pre>\n\n<h4>Grunt<\/h4>\n\n<p>This plugin takes advantage of Grunt for validating JavaScript, SASS compilation and minification. To take advantage of Grunt you have to have both <a href=\"https:\/\/npmjs.org\/\">npm<\/a> and <a href=\"http:\/\/gruntjs.com\/\">Grunt<\/a> installed. Visit the respective sites for the applications and make sure they are installed. Once installed, if you want to edit\/fork this plugin, it will be helpful to be familiar with these two tools.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>If installing manually, unzip and copy the resulting directory to your plugin directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Add the widget to any widgetized area\/sidebar and configure as desired.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>This isn't working!<\/dt>\n<dd><p>Are you using WordPress 3.6+?<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>Fix for create_function deprecation<\/li>\n<li>Remove warnings on widget save<\/li>\n<\/ul>\n\n<h4>0.2.7<\/h4>\n\n<ul>\n<li>Fixed bug that caused caching issues if you used <code>srpw_get_args<\/code><\/li>\n<\/ul>\n\n<h4>0.2.6<\/h4>\n\n<ul>\n<li>Validate it works with WordPress 4.9.1<\/li>\n<\/ul>\n\n<h4>0.2.4<\/h4>\n\n<ul>\n<li>Validate it works with WordPress 4.8.1<\/li>\n<\/ul>\n\n<h4>0.2.4<\/h4>\n\n<ul>\n<li>Code cleanup, bugfixes<\/li>\n<\/ul>\n\n<h4>0.2.3<\/h4>\n\n<ul>\n<li>Bugfixes<\/li>\n<\/ul>\n\n<h4>0.2.2<\/h4>\n\n<ul>\n<li>cleaned up javascript<\/li>\n<li>added widget by widget templating<\/li>\n<\/ul>\n\n<h4>0.1.4<\/h4>\n\n<ul>\n<li>Updated transient logic to be more efficient<\/li>\n<li>Minor helper\/guide text updated<\/li>\n<\/ul>\n\n<h4>0.1.3<\/h4>\n\n<ul>\n<li>Readme edits<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Drag and drop the widget and fill out the appropriate fields. Some notes:","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27388"}],"author":[{"embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/matstars"}],"wp:attachment":[{"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27388"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27388"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27388"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27388"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27388"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}