How To Show Latest Posts on a Custom Page in WordPress

How To Show Latest Posts on a Custom Page in WordPress

How To Show Latest Posts on a Custom Page in WordPressYou 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:

  1. Yoursite.com/blog – Displays Latest Post
  2. Yoursite.com/blog/page/2 – displays second page of posts
  3. 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.

17 comments

  1. 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 ChicagoMy Profile

  2. Tattvaa Yogashala offers the opportunity to journey into the depths of your yoga practice. Located in Rishikesh, the yoga capital of the world, on the banks of the holy Ganges River, our school offers a natural haven for those who seek an experience and environment in which to evolve in body, mind and spirit. We are globally known for world class Yoga Teacher Training in Rishikesh, India.

    Yoga Teacher Training in Rishikesh || Hatha Yoga Teacher Training in India

  3. Yoga Teacher Training India

    Vishwa Shanti Yoga School is Rys 200 and Rys 300 conducting affordable intensive residential 200, 300, and 500-hour hatha yoga teacher training international certification courses affiliated with Yoga Alliance USA in Rishikesh, India for beginners, intermediate to advanced level yoga practitioners. The Program includes of few Ashtanga yoga sequences.

    yoga teacher training rishikesh | 200 hour yoga teacher training india | 200 hour yoga teacher training rishikesh | 300 hour yoga teacher training india | 300 hour yoga teacher training in rishikesh | 500 hour yoga teacher training in india | 500 hour yoga teacher training in rishikesh | oldest yoga school in rishikesh | yoga school rishikesh | yoga school india | best yoga school in india | best yoga school rishikesh

This blog uses premium CommentLuv which allows you to put your keywords with your name if you have had 3 approved comments. Use your real name and then @ your keywords.

Leave a Reply

Your email address will not be published.

CommentLuv badge