This tutorial is a part of the developer’s documentation. It is recommended that you have some knowledge of coding before you proceed because we don’t want to break your live sites 😉 – If coding isn’t your thing then you should forward this tutorial to your developer.
In this tutorial, we will look at the way in which we can modify the list of posts (technically known as Loop) appearing on the Home Page to whatever we want.
Before we even start let’s get the main concept straight, What exactly are are we trying to modify on Homepage of our website ?
Now in order to modify the output, we need to follow the following steps:
and you are done, change the parameters accordingly in the code to what you want to display and simply activate the plugin.
Making it Update Proof:
We don’t have to touch the core plugin to make these changes, so we’re making an external lightweight plugin to make these changes. Actually, this is a standard and recommended way by WordPress.
You can download the final plugin file and put it in your plugins folder. This will make sure that everything is update proof.
Closing notes:
In today’s tutorial, we learned how to modify the homepage loop and make changes to it. In the final code, we covered two use cases, ‘How to exclude specific categories from the homepage loop’ and ‘How to show posts from other custom post types’.
Please let us know if this was helpful for you and please send other suggestions for the tutorials.