Back to Top

How to Exclude Latest Post from the WordPress Loop?

To Exclude Latest Post from the WordPress Loop

This time I am going to explain how to exclude the latest article from the WordPress loop.This is because when I had redesigned my site, latest article (first article) has the different layout than the other one.Even you can see in my site home page.It’s the first article has a different layout than other articles.

So, In this article I am going to explain to you how to use the offset parameter in query_posts function to exclude latest posts from the WordPress loop.

For that, you need to place following line of code before your loop.

Must Read: To import terms from csv in wordpress

After adding above line of code you can see your code will look like this

Here offset will exclude the latest post and display all other articles.

That’s it.That’s a very simple way, a WordPress provide the very easiest way for customization.I hope this will help you.

Read about: Last Record from loop in WordPress

Don’t hesitate to use this code in your WordPress projects and post your comments if you need help. As always, thanks for reading. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

How To Repair MySQL Table

Posted on 7 years ago


How to use jQuery Lazy Load Plugin?

Posted on 4 years ago


How to use NoSQL and MongoDB

Posted on 6 years ago


To Swap Database Row in PHP

Posted on 7 years ago