In this tutorial. i’ll provide the code i tested which excludes the latest published post from your home page loop.
Simply copy this PHP from the view raw link in the Gist and paste it at the end of your child themes functions.php file using a code editor.
The code above simply removes your most recent published post from the home page loop and can also be easily modified to offset any number of posts from the posts page you select in your Reading settings.
The home page loop may also be called your posts page or blog page.
When you publish a new post, it will be removed from the loop until you publish another post.
Was This Tutorial Helpful?