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 …
  • 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.
  • 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.

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.