Skip to content
The following code will automatically create a sitemap.xml when a post or page is first published. This is a non-plugin...
In an SQL statement, the IN operator allows you to multiple values in a WHERE clause, for example: SELECT *...
A “Must-Use” plugin is like an ordinary WordPress plugin – it can contain code that shapes what WordPress does – but it...
Problem When attempting to save a WordPress post you receive the following error message Warning: Cannot modify header information -...
In WordPress the WPDB class is available for interacting with the database, for example reading or writing data. The PREPARE...
At their simplest, an anonymous function is an unnamed function. There are many ways they can be used to simplify...
The following steps show how to change PhpStorm’s code cleanup feature to use the WordPress Coding Standards. With PhpStorm open,...
The following PHP code shows how to get all the images embedded in a WordPress post. This may be useful...
When you’re running a website through CloudFlare you may notice that IP addresses being logged are not correct – that...
The following guide shows how to install a WordPress IIS test environment on your computer. There are many guides that...
Typically WordPress plugins are for a single purpose – such as a tool, and any custom functions you need are...
The following PHP preg_replace function will looking for valid URL’s in a string and turn them into clickable links. For...
Question How do you use a variable multiple times when using $wpdb->prepare ? Answer If your prepared SQL statement needs...