Adding More Posts Links with Featured Images to WordPress Templates with Mini Loops Plugin

Mini Loops is a very useful plugin to feature posts in widgets area. It is also can be included to template files. We’ll use it to feature some more posts on a blog’s homepage.

I want to show some 6 rectangles with links to next posts after first 4 posts on homepage. In Reading Settings of WP admin I have “Blog pages show at most 4 posts.” We’ll be able to skip this first 4 posts in our second loop. Check the picture to see how it gonna look below my regular posts display. The new loop will also cut pictures from given source.

After installing Mini Loops plugin I’m opening index.php in my child theme and looking for original part of Twenty Eleven Theme code.

Here you may see explanations of tags used, but what’s important is to set ‘post_offset’ => 4, to skip first 4 posts. Otherwise the links will show the same posts as on top. In ‘item_format’ we set HTML to display our links. When we’ll use from=thumb, it will display our featured images with the new size cropped. If you are changing the size of images you may set there cache=clear, but then remember to remove it after you satisfied with the results 🙂