Tag: snippet

WordPress: Minify HTML for Google PageSpeed

One simple thing you can do to improve the loading speed of WordPress pages is to minify the HTML and then implement a system cache. In this tutorial we will teach you a simple way to minify the HTML code. Helper Hook First we have to add a helper hook, this is to affect only the front pages […]

Remove password protected posts from archive pages

In this tutorial we’ll show how to remove password-protected posts from all of the archive pages in WordPress. There is no need to modify the theme, create custom loops or custom queries. We’ll modify the main query created by WordPress using two hooks; then, we’ll show other ways to use the same functions to search posts with a […]