>
Download This Plugin | |
Download Elegant Themes | |
Name | Super Recent Posts Widget |
Version | 0.2.4 |
Author | Mat Gargano |
Rating | 100 |
Last updated | 2015-02-13 01:31:00 |
Downloads |
849
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Super Recent Posts Widget plugin added 3 bytes of resources to the Home page and 28 bytes of resources to the sample Post page.
Super Recent Posts Widget plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Super Recent Posts Widget plugin ads no tables to your Wordpress blog database.Drag and drop the widget and fill out the appropriate fields. Some notes:
To display posts from a specific post type leave Taxonomy as "-- No Specific Taxonomy --"
If you leave order by and/or order as "-- Choose order parameter --" and/or "-- Choose orderby parameter --" it will go with WordPress' default(s), see here for more information.
The following filters are available:
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.
`<?php
function customize_srpw_template_filter( $template ){
$template_dir = get_template_directory();
return $template_dir . '/views/custom-srpw.php';
}
add_filter( 'srpw_template', 'customize_srpw_template_filter' );
?>`
`<?php
add_filter( 'srpw_template', function ( $template ){
$template_dir = get_template_directory();
return $template_dir . '/views/custom-srpw.php';
} );
?>`
This plugin takes advantage of Grunt for validating JavaScript, SASS compilation and minification. To take advantage of Grunt you have to have both npm and Grunt 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.