Skip to content
Last updated: Saturday, 15 May 2021
If you’re serious about optimising a WordPress website for speed, then you need to setup your website to serve the...
The following code will automatically create a sitemap.xml when a post or page is first published. This is a non-plugin...
wp-login, also known as “The Login Form” is the standard place where authentication is handled on WordPress websites. It’s the...
A non-breaking space allows you to add a space between two words that prevents an automatic line break (line wrap) at its...
The following steps detail how to exclude a post or page from being cached by W3 Total Cache. Log into...
By default WordPress loads a JavaScript file called comment-reply.min.js for each page load. This will look something like http://www.itsupportguides.com/wp-includes/js/comment-reply.min.js?ver=4.2.2 comment-reply.min.js...
The following htaccess code rule shows how to remove a single query parameter from a URL – leaving any existing...
When resetting passwords in WordPress a random password is automatically generated and pre-filled in the password field. The random password...
The following code will make the WordPress visual editor (TinyMCE) create “tabs” (which don’t actually exist in HTML, so we’re...
The steps below detail two ways make WordPress use only www for your website address. If a user tries to...
CloudFlare is a popular and free service that speeds up your website by managing the websites DNS and routing traffic...
By default the WordPress RSS summary excerpt length is 55 words. The steps below detail how to change the summary...
Every new install of WordPress comes with two plugins – Akismet Anti-Spam and Hello Dolly. They are disabled by default,...
In an SQL statement, the IN operator allows you to multiple values in a WHERE clause, for example: SELECT *...
By default WordPress runs an RSS feed of your posts which are accessed from www.domainname.com/feeds The feed contains the full text...
A non-breaking space allows you to add a space between two words that prevents an automatic line break (line wrap)...
A “Must-Use” plugin is like an ordinary WordPress plugin – it can contain code that shapes what WordPress does – but it...
The following code shows how to add a custom column to a Custom Post Type in WordPress. In this example...
The following code can be added to your theme’s functions.php file to remove the RSS feed links from the page...
When using the visual editor in WordPress (TinyMCE) you’re composing content in HTML. Whilst it may be as easy as...
When WordPress sends emails it should use the email address set in the Settings -> General -> ‘E-mail Address’ field. However, I’ve...
By default WordPress will run an artificial ‘cron job’ once every minute. These cron jobs are used to maintain WordPress...
Problem When attempting to save a WordPress post you receive the following error message Warning: Cannot modify header information -...
WordPress 4.4 introduced a new feature for the WYSIWYG editor (TinyMCE) – auto-embedding of URL’s added to the editor content. With this...
WordPress 4.4 introduced core support for emojis. This automatically converts emoticons in your content from their text representation to an...
The following code shows how to add a “Last Modified” column to the page and post lists in WordPress. The...
Here’s four options for disabling comments in WordPress. Please note – any existing comments may still be displayed, depending on...
Disqus provides a JavaScript widget – recent_comments_widget.js – that allows you to list your websites latest Disqus comments. The widget...
In WordPress the WPDB class is available for interacting with the database, for example reading or writing data. The PREPARE...
As a WordPress administrator one of the simplest things you can do to protect your website is to lock down...
At their simplest, an anonymous function is an unnamed function. There are many ways they can be used to simplify...
If you’re migrating your WordPress site to a new domain name (URL address) you’ll need to update the WordPress configuration....
This guide will show you how to update your WordPress plugin in the plugin directory using TortoiseSVN on a Windows 8 computer....
The following code will automatically delete Gravity Form entries after submission. This may be helpful for test or demo forms,...
By default WordPress displays an toolbar (known as the admin bar) on all pages when users are logged in. This...
The following code can be used to automatically redirect users after they’ve reset their password. This code will automatically redirect...
“White screen of death” – where a website fails to load and displays a white page, typically with no content....
The following WordPress script can be used to display a message to users that are running adblocker software. The script...
The following steps show how to change PhpStorm’s code cleanup feature to use the WordPress Coding Standards. With PhpStorm open,...
Problem When using a WordPress plugin you receive an error message which reads: The plugin generated 4191 characters of unexpected...
I’m not interested in getting into the technical aspects of setting up a VPS as a web server – instead...
The following PHP code shows how to get all the images embedded in a WordPress post. This may be useful...
By default Gravity Forms has three address type formats: International United States Canadian International is the default address type and...
Problem After publishing or updating a plugin on the WordPress Plugin Directory, the version number is either not displaying or...
The Disqus plugin for WordPress works by hooking into the built-in commenting functionality of WordPress. When enabled it does what...
When you’re running a website through CloudFlare you may notice that IP addresses being logged are not correct – that...
Every new install of WordPress comes with a number of themes. But often people install their own theme and wonder if...
By default WordPress will use a full absolute URL for resources such as images, scripts and style sheets. If the...
I recently needed to re-do my image thumbnails inside all WordPress posts. I decided to use phpMyAdmin to run a...
By default when Internet Explorer is displaying a website that falls within a computers intranet zone the page is rendered...
Problem When using a WordPress plugin you receive an error message which reads: The plugin generated 4191 characters of unexpected...
Problem When activating a plugin you receive an ‘headers already sent’ error message which reads The plugin generated x characters...
FireFox has the built in capacity to spell check as you type in any multi-line text box, such as the...
Typically WordPress plugins are for a single purpose – such as a tool, and any custom functions you need are...
The following guide shows how to install a WordPress IIS test environment on your computer. There are many guides that...
Problem After installing WordPress on WebMatrix, the page does not load. Giving an error message which reads: HTTP Error 500.0...
Below are the steps I take to configure the language_attributes() used by WordPress. This will control what is output by...
The following code shows how to remove all but one query args from a URL. This code has been written...
Using your preferred method (FTP is recommended) connect to the server hosting your WordPress install. If you’re not sure how...
The following code shows how to add a custom column to the WordPress posts and pages list. In this example...
By default WordPress uses the /wp-content/uploads/ directory for uploaded files, for example images added to the media library are saved...
The following database privileges are the least required to allow WordPress to operate completely and reliably. These permissions can be...
The following code can be added to your theme functions.php file (anywhere after the opening <?php line) to enable the...
The following WordPress function will make the media library only show the current users images, with the exception of Administrators,...
The default upload limit in WebMatrix is 2 megabytes. The upload limit is determined by three factors, the limit being...
The following PHP code shows how to apply default settings to new forms in Gravity Forms. To use this code...
When a WordPress installation sits behind a proxy server the proxy settings are added to wp-config.php to tell WordPress how...
The steps below show how to do a find and replace on the WordPress posts table using phpMyAdmin. REMEMBER: backup...
Recently when running performance tests using P3 (Plugin Performance Profiler) I noticed that plugins were running on pages that they...
The following steps detail how to create a new widget area in your WordPress theme. The widget area will appear...
The tabindex attribute defines the navigation order for focusable elements such as links and form fields in a web page....
The following code can be added to your theme’s functions.php file to disable the RSS feed on the home page...
To disable comments and pingbacks on WordPress multi-site installs – you need to use the following code in a must-use...
When WordPress is installing updates – whether that be plugin updates or WordPress updates – the site is temporarily put...
The following jQuery script can be used to automatically add HTTP:// to the start of a input field value if...
The following code can be added to your theme’s functions.php file to add the Google Analytics tracking code to all...
The htaccess rule below shows how to force all traffic to go over HTTPS, rather than HTTP. This assumes you...
By Default, WordPress will use the permalink for post and page URL’s. These look like www.domainname.com/?p=123 which have limited usability...
By default, posts and pages in wordpress save previous versions when updates are saved. This can be helpful if you...
By Default, WordPress will use the permalink for post and page URL’s. These look like www.domainname.com/?p=123 which have limited usability...
By default WordPress has three address type formats International United States Canadian International is the default address type and provides...
The following code will allow administrators and users that have access to view form submissions to view a form outside...
Usually to reset the password of any WordPress account you would use the link “Lost your password?” in the login...
By Default, WordPress adds /category/ to the base of category pages. If the category was ‘WordPress’, this would look like...
By default, posts and pages in wordpress save previous versions when updates are saved. This can be helpful if you...