Created: 29/08/2012
By: Luca Grandicelli
Email: lgrandicelli@gmail.com
Twitter: @lucagrandicelli
Thank you for downloading the Special Recent Posts FREE Edition plugin. If you have any questions that are beyond the scope of this help file, please feel free to email me via my contact form page here. Thanks so much!
Special Recent Posts FREE Edition is a very powerful plugin/widget for WordPress which displays your recent posts with thumbnails. You can dynamically re-size thumbnails to any desired dimension, drag multiple widget instances and configure each one with its specific settings. You can also use custom PHP code or shortcodes to insert the widget in any part of your theme.
These are the main required settings:
Manual installation is easy and takes fewer than five minutes.
Since Special Recent Posts FREE Edition v 1.9.5 most of the logic has been completely redesigned and rewritten. So if you're upgrading from a version prior to 1.9.5, many of your old settings might be overwritten.
SO PLEASE MAKE SURE YOU MAKE A BACKUP OF YOUR OLD CUSTOM CSS AND TAKE NOTE OF YOUR WIDGET SETTINGS!
If the upgrade process fails or if you're experiencing troubles with the plugin behaviour, please consider to completely uninstall the previous version and then re-install Special Recent Posts FREE Edition from scratch. Anyway the plugin will try to do its best to preserve your old widget settings.
NOTES FOR MANUAL UPGRADESpecial Recent Posts basically retrieves a list of recent posts assigning a thumbnail to each entry. The thumbnail generation process is one of the key features that makes SRP “special”. The image re-size process is done completely on-the-fly and generated thumbnails are stored in a special cache folder for later display and less load on server.
For first, SRP tries to fetch a post featured image. If this exists, it will be displayed. If this doesn't, then the plugin will try to fetch the first image from the post content. If this step fails too, a custom no-image thumbnail will be displayed. If you're having troubles with thumbnail display, please read the F.A.Q
Note: Caching is mandatory. This means that if the cache folder doesn't exists or is unwritable, the whole plugin won't work.
The Basic Settings
These settings are available under the Settings->Special Recent Posts FREE Edition panel. This is the main place where global options apply to the whole plugin.
This is a great feature that lets users to insert the Special Recent Posts FREE Edition widget in all non-widget handled parts of their Wordpress theme.
PHP Mode Using PHP code is very simple. Just put these few lines of code where you'd like the widget to appear:<?php if(function_exists('special_recent_posts')) { special_recent_posts($args); } ?>where $args is an array of the following options:
// Change widget title (default: 'special recent posts') 'widget_title' => text // Display thumbnails? (default: 'yes') 'display_thumbnail' => 'yes' | 'no' // Hide widget title? (default 'no') 'widget_title_hide' => 'no' // Set thumbnail width (default 100) 'thumbnail_width' => digit // Set thumbnail height (default 100) 'thumbnail_height' => digit // Link thumbnails to post? (default: 'yes') 'thumbnail_link' => yes' | 'no' // Set thumbnail rotation mode (default 'no') 'thumbnail_rotation' => 'no|cw|ccw' // Set default displayed post types (default: 'post') 'post_type' => 'post' | 'page // Set default displayed post status (default: 'publish') 'post_status' => 'publish' | 'private' | 'inherit' | 'pending' | 'future' | 'draft' | 'trash' // Set max number of posts to display (default: 5) 'post_limit' => digit // Set displayed post content type (default: 'content') 'post_content_type' => 'content' | 'excerpt' // Set displayed post content length (default: 100) 'post_content_length' => digit // Set displayed post content length mode (default: 'chars') 'post_content_length_mode' => chars|words|fullexcerpt // Set displayed post title length (default 100) 'post_title_length' => digit // Set displayed post title length mode (default: 'chars') 'post_title_length_mode' => chars|words|fulltitle // Set post order (default: 'DESC') 'post_order' => 'DESC' | 'ASC // Set post offset (default: 0) 'post_offset' => digit // Set random mode (default: 'no') 'post_random' => 'no' | 'yes' // Hide current post from visualization when in single post view? (default: 'yes') 'post_current_hide' => 'yes' | 'no' // Set layout content mode (default: 'titleexcerpt') 'post_content_mode' => 'titleexcerpt' | 'titleonly' // Display post date? (default: 'yes') 'post_date' => 'yes' | 'no' // Filter posts by including post IDs (default: none) 'post_include' => comma separated list of digits // Exclude posts from visualization by IDs (default: none) 'post_exclude' => comma separated list of digits // Filter post by Custom Post Type (default: none) 'custom_post_type' => comma separated list of custom post types // Set the default 'No posts available' text (default: 'No posts available') 'noposts_text' => text // Set allowed tags to display in the excerpt visualization. 'allowed_tags' => blankspace separated list of html tags // Set string break text (default: [...]) 'string_break' => text // Set path to optional image string break. 'image_string_break' => text // Link (image)string break to post? 'string_break_link' => 'yes' | 'no // Set post date format. (default: 'F jS, Y') 'date_format' => text // Filter posts by including categories IDs. (default: none) 'category_include' => comma separated list of digits // When filtering by caqtegories, switch the widget title to a linked category title (default: 'no') 'category_title' => 'no', 'yes' // Add the 'no-follow' attribute to all widget links. 'nofollow_links' => 'no' | 'yes'
Example: Show last 5 posts in random order filtering by category IDs 3 and 7. (PHP mode)
<?php // Defining widget options. $args = array( 'post_limit' => 5, 'post_random' => 'yes', 'category_include' => 3, 7 ); // Function call. special_recent_posts($args); ?>NOTE: Versions prior to 1.9.5 make use of a different notation for parameters, with a prefix like this: SRP_ All the old parameteres will be reckognized by the new version for compatibility reasons, but i suggest you to switch to the new names.
The stylesheet is located at wp-content/plugins/special-recent-posts/css/css-front.css
Plugin shows no thumbnails
Category/Post filtering isn't working
In order to properly filter posts by categories, you must provide a numeric value which is the Category ID. Every Wordpress category has an unique Identification number, and this can be found doing the following steps:
Special Recent Posts FREE Edition makes use of the common gettext system for translating content, which is the same used by Wordpress. If you wish to translate the Special Recent Posts FREE Edition plugin to your language, please consider the following steps: