Send an email with PHP – useful for a simple contact form if (isset($_POST[‘submit’])) // Your submit button or a required form field { $EmailTo […]
Split A Large MySQL Table Into Multiple SQL Files
If you have a large database table that is causing your import to fail, you can split the table out into smaller more manageable chunks […]
Set First Image In WordPress Post As The Featured Image
Add the following code to your functions.php file. To run it, simply visit any page on the site – DO NOT USE THIS CODE ON […]
Add Custom Content & Read More Link To WordPress RSS Feed
In your functions.php file add in the following code // Customize the content of the custom RSS feed function custom_rss_item($content) { global $post; // Build […]
Add Your Own Code Formatting In The Classic Editor With TinyMCE
If you want to add custom formatting to your content but don’t want to have to go into the HTML view and manually type it […]
Add Open Graph Tags To Your WordPress Site
If you want to add Open Graph tags to your site and you don’t want to use a plugin or have more options on customising […]
Add A Canonical Link To Your WordPress Header
WordPress doesn’t generate a <link rel=”canonical” href=”http://www.yoursite.com”> by default. This can cause issues with Google not indexing your page or indexing an incorrect canonical URL. […]
Create A WordPress Child Theme
In order to create a Child theme we need to add a minimum of two files Create a new folder which will hold your child […]