Based off the Advanced Most Recent Posts plugin by Yakup GĂ–VLER. Display most recent posts from selected categories or current category or all catego
Does eacrly what it says on the tin, css output easy to change.
Great plugin, just what I needed.
I added some code to use the featured image (if there is one) before reverting to the default:
Before this line:
if (!$img && $defimage)
Place the following code:
if(!$img){
$featured_img = get_post_thumbnail_id($post->ID);
$imgsrc = wp_get_attachment_image_src($featured_img, 'thumbnail');
if(!empty($imgsrc[0])) { $img = $imgsrc[0]; }
}
Untick "get first image" and "get first attached image" and the post's featured image will be used as the thumbnail.
You must log in to submit a review. You can also log in or register using the form near the top of this page.