If the content on your site is well organized by headings, then you probably won’t need the “Similar posts” block on the site at all, because you can simply display fresh posts from the same heading. In today’s article we will show you how to create a “More Posts from This Category” section as an […]
Category: Code
By default, WordPress displays the same number of posts for both the homepage (when configured to display blog posts) and all post archive types. In order to change the default number of displayed posts for a particular type of archive, you can add the following function to your theme’s functions.php file or to your WordPress […]
In this article, we will show you how to easily disable JSON REST API in WordPress. Why Disable JSON REST API in WordPress? There is no doubt that the API will bring many new features for WordPress developers. However, some site owners simply don’t need such features. The API makes it very easy to get […]
Recently, one of our readers asked how you can exclude categories from the navigation menu on the fly if there are no entries in the category. In this article, we will show you how to implement your plan. For this solution we will use the filter wp_get_nav_menu_items and the global $ wpdb object [codex]. They […]