WP PHP Hacks

This section contains details of a few PHP ‘hacks’ which I’ve tried – or been forced to resort to – at various times.


  • 01-Sep-2020 : I killed my Web site!
    Well done, me – I totally killed my own Web site yesterday. I feel stupid but I’m documenting the fix because it might save someone else an hour entering all the wrong search terms into Google and worrying they’ll never sort out the problem. So, what did I do wrong?  Well, there’s an option in the ...
  • 31-Aug-2020 : Web site refresh
    After becoming more and more dissatisfied with the appearance of my Web site and the frequency with which I was updating it, I decided a couple of days ago to give it a complete revamp. I don’t think many people are accessing it – or even know it exists – unless they happen across it ...
  • 22-Jan-2013 : Protected content
    This little PHP snippet allows you to selectively display content to users who are, or who are not, logged in. Make sure you know where your theme’s functions.php file is stored: it will be somewhere like /public_html/wp/wp-content/themes/theme_name/functions. Make sure you know how to replace this file manually, either via your site’s cPanel or by ftp. Go Appearance ...
  • 21-Jan-2013 : Get rid of the WordPress ‘Howdy’ greeting
    I know there’s a plugin which will get rid of that irritating ‘Howdy’ greeting but here’s a simple snippet of PHP which will do the same thing. Make sure you know where your theme’s functions.php file is stored: it will be somewhere like /public_html/wp/wp-content/themes/theme_name/functions. Make sure you know how to replace this file manually, either via ...

If you discover any errors on this page, please fill out this contact form or email me and I’ll fix them as quickly as I can.