TPG Get Posts Plugin: Display the Latest Blog Post on a Static Page on WordPress
The WP template I’m currently using doesn’t have a feature to display the latest blog post on a static page. And I am thinking that it would be helpful if I could display my latest blog posts on the main page.
By the way, here’s how to set your static page:
1 – On the WP dashboard, look for the Settings, click Reading.
2 – There are 2 check buttons: Your latest posts (selected by default), and a Static page.
- a – Front page: (this will be your main page)
- b – Post page: (this will be the page for your blogs)
Display the latest blog posts discussions
I’ve done a lot of research on how to add the latest blog post on a static page, and I’ve found a relevant discussion. You can read the discussions here, with the codes for displaying the latest blog posts on a static page. But I find it difficult to apply; other than that, one of the reasons is that what if I’m going to change my template, so does it mean that I will add codes again?
TPG Get Posts WP Plugin – is the answer
What I’ve found is a WP plug-in called TPG Get Posts. The TPG Get Posts plugin allows you to use a shortcode tag to add on a page and will display the list of blog posts just like the standard blog. The posts display can be selected by one or more tag values supported by the WP get_posts function, to let you control the displays on your page. See the list of support tag values here.
Here’s how to install
- Upload the plugin to the /wp-content/plugins/ directory and unzip it.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
How to use the plugin
1 – To use it, open the page where you’d like to add the shortcode [ tpg_get_posts ] and just make sure that you selected the HTML editor.
By default it will display the latest 5 blog posts, but you can customize the display settings by using the supported get_posts template tags.