You can see that WordPress shows your latest post in the Front page or Home page by default with older posts available via post navigation on Page 1 , Page 2 etc.Today we’re sharing a tutorial on How To Show Latest Posts on a Custom Page in WordPress.
We all use different theme, and this tutorial will be helpful for those who want to show their blog post on yoursite.com/blog or yoursite.com/yourpage and for those also who wants to use a static or custom page as their home page to show latest post in a business WordPress theme.
We’re using WP_Query loop to display your blog post and its other page.
For example:
- Yoursite.com/blog – Displays Latest Post
- Yoursite.com/blog/page/2 – displays second page of posts
- Yoursite.com/blog/page/3 – displays third page of posts
How Helpful is this tutorial to you?
If you’re a pro blogger and doesn’t sell any service then this post is useless for you, but if you’re in a professional business and selling your own product or you’re affiliated to sell any product then this tutorial will definitely help you to fix all the issue related to showing WordPress blog posts.
If you want to show a custom business front page on your site and doesn’t want to install new WordPress on Yoursite.com/blog to show your latest blog post then this tutorial will help you to show your existing blog post on yoursite.com/blog.
Remove the Business template and Show posts on the Front page
This tutorial helps to set a custom homepage which shows all the latest post on a custom page.Imagine if you’re facing a problem that you installed a business wp theme like Parallax one WP theme.
This theme doesn’t show latest posts in the front page.Instead of showing all post in the front page it shows business template.If you’re facing the same problem then follow these steps to fix this issue.
Step 1.Create a Page and upload it on server
In the first step create a new page template named page-blog.php and paste this code.If you want to more than 5 posts per page then change 5 to 10.After create the page-blog.php named page, upload it to the server.
query('showposts=10' . '&paged='.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> " title="Read more">
1) { ?>
Step 2.Add New Page From WordPress Dashboard
Now go to your WordPress Dashboard and create a new page named Blog or what you want from WordPress dashboard.
Click on the left menu>>Page>>New Page>>Enter the name and done.
Step 3.In the third step, search for the “Page Attributes” option and select blog in the template option in the right sidebar.
Now open the page yoursite.com/blog you’ll see that all the post will start showing on a custom page.
Nice Tutorial…Good Going Brother…Wordpress Main Bohot Logo Ko Bohot Confusion Rehti h…I Like Your Post..Keep It Up.
Nitin recently posted…Nokia to Launch Virtual Reality Headset In A Week?
Hi dear,
Nice tip. Its very help for to customize the wordpress latest post.
Thanks for sharing awesome post.
amna recently posted…Sexy Mini Lace Clubwear Dresses For Women
awesome web site to informativ i like it keep touch with you in future…. thnxxx
Very nice blog thanks for sharing.
thanks for sharing keep on sharing…..
Thanks for this method.. I think you are a coder. If i want add style to the page what should i do ?
Himanshu katiyar recently posted…Bangistan Movie 2015 Release Date ,Promo, Preview,Cast
Hi Vinayak,
WordPress makes it easy to display your blog posts just about anywhere. In this article how to display posts on any page using a custom WP_Query loop that supports post navigation, which can be super-useful when configuring WordPress as a customized CMS.Thanks for shared.
Eva Rays recently posted…Get CM Browser for PC Download & Surf Web Securely
Vinayak, thanks for the detailed tutorial. I knew I needed to add a blog to my website but if I haven’t done something before, I really struggle unless I have detailed instructions to follow. This post is perfect. Thanks!
Peter recently posted…Masonry Restoration Chicago
nice post…its very helpful information….
Thanks for awesome share this post i like this site..
zubicool recently posted…SolidWorks 2015 Crack, Serial Number Full Free Download