Delete unused images in WordPress using WP CLI - Delete unused images in WordPress using WP CLI

Delete unused images in WordPress using WP CLI

This small script uses a for loop to delete one post ID at a time, it will go through the database and list all media files uploaded in the provided data range that are not used inside posts. Change the date range according to your needs.

wordpress mysql usage statistics - WordPress MySQL Version Usage Statistics UPDATED

WordPress MySQL Version Usage Statistics UPDATED

As of 2021, the vast majority of WordPress websites are using MySQL version 5.6 or higher because WordPress has required at least MySQL version 5.6 since version 4.4, released in 2015. Newer MySQL versions are not yet widely adopted, as some users may be using older hosting environments that do not support them, or they … Read full article →

nginx proxy - How to set up WordPress behind a secure reverse proxy using Nginx

How to set up WordPress behind a secure reverse proxy using Nginx

The Really Simple Security plugin (formerly Really Simple SSL) is a useful tool, but it tends to overcomplicate SSL configuration. When running WordPress behind multiple proxies—especially those handling SSL termination like Varnish—the following configuration is usually sufficient to eliminate mixed content errors and prevent infinite redirect loops: FORCE_SSL_ADMIN Add FORCE_SSL_ADMIN true in wp-config.php to tell … Read full article →

template name - Display template name in WP admin bar

Display template name in WP admin bar

Figuring out templates that are being used while you are building and developing a custom WordPress website can be problematic. Using the following snippets you can quickly and easily display template name or full path to the file in your wp-admin bar. Display Template name To display just template name add the following to functions.php … Read full article →

The anatomy of great WordPress theme - The anatomy of great WordPress theme

The anatomy of great WordPress theme

There is no one WordPress theme in existence that can suit all websites. That is why there is a great variety of websites in existence in which, business owners, organizations, and bloggers can use. So, how do you go about choosing a WordPress theme that you will be certain that it will serve your business? … Read full article →

bypass cache wordpress - How to bypass cache and always view uncached content in WordPress

How to bypass cache and always view uncached content in WordPress

In most cases, the cache can be “tricked” by adding a random variable to the URL during testing, for example https://wpxss.com/application/wp-includes/how-to-bypass-cache-and-always-view-uncached-content-in-wordpress/?a=123 In this case, a new cache page is generated and does not load cached content that already exists.

Banned Why Kinsta error message - Kinsta Banned Plugins

Kinsta Banned Plugins

Kinsta has a list of Banned plugins that they don’t allow to be used on their hosting. The complete list of plugins can be viewed here: https://kinsta.com/knowledgebase/banned-plugins/ But even after you migrate your WordPress website from Kinsta to another hosting provider, you are left with this annoying Banned Why? message on some plugins. To get … Read full article →

create wpcli aliases - Create WP-CLI Aliases

Create WP-CLI Aliases

IF you use the same commands often you can save them as aliases so that you have them always available. For example, the following commands will check if WP core, installed plugins and themes have updates available: You can combine the commands into a one-liner: and you can create an alias for this command: so … Read full article →