Showcasing the recent blog posts on website homepage is the common practice for the majority of webmasters. By doing this, you can inform both search engines and online readers of what you have added in the previous days. Besides, having your recent posts displayed in your homepage or sidebar is one of the most popular web design trends at present.
In the following, we’d like to introduce two methods of how to showcase recent posts in WordPress powered websites.
Make Use of WordPress Plugins
Generally, there are two main occasions for the showcase of the latest blog post – showcasing on the homepage or on the sidebar of each webpage. The utilization of WordPress plugins simply makes it easy to achieve these two displays.
Display on Homepage using Advanced Recent Posts
First of all, you need to install this plugin to your WordPress website and activate it. After that, you can find a new tab from your WordPress admin – Advanced Recent Posts. Simply click it to enter the settings page.
Now, you can choose among the available 4 layouts. Let’s check them one by one.
After choosing the layouts, you’d better click the box before “Do not display Posts without Featured Image” if every of your blog post has an exclusive featured image.
The rest settings include the columns and dimensions, post types, author displays, tags, categories, sort and orders, image sizes, color schemes, posts excerpts, date and time showcase. You can decide based on your needs. Here, the only thing you need to pay attention is that do not check any boxes in the Category area, so that all the latest posts can be displayed.
Once everything is determined, you can click the Generate Shortcode button, and place the coding stuff in the function.php file of your current template.
Display on Sidebar using Advanced Recent Posts
Now, you can go to the Widgets section after clicking the Appearance tab. Here, you can find two options – Recent Posts Widget (Fluid Image) and Recent Posts Widget (Thumbnail Image). The former one allows you to showcase your latest posts with big fluid images while the latter one allows posts showcase with some small thumbnails. You can choose one according to your website design.
Then, you can drag it to the ideal location within your Widget area. Here, you can decide a lot of settings to better showcase your recent posts, which are more or less the same as the settings for showing recent posts on homepage.
Make Use of Coding Stuff
In addition to the plugins, you can also resort to the coding stuff, giving you more freedom for customizations.
For this, you can make use of the wp_get_recent_posts tag. Detailed coding examples can be found at this WordPress Codex page.