Hide the page you've set to show Posts in WP Admin

One of my many annoyances with WordPress is how you need to create a page, and assign that to be the Posts archive page, if you want a static home page and Posts elsewhere. This usually means having a page in WP with the editor saying something like “Don’t delete this page, it’s pretty important!”. I found this answer on SO, and adapted it to suit my needs. ...

Event Date Sorting Columns for WordPress CPTs

On a recent client project, one of the requirements was adding a couple admin columns for a custom pst type type to sort things by start date and end date. It was a slight faff to work out how this should be done, so I’m plonking it here for me to find in the future. The complication here was wanting to show the date in a human-readable format whilst ...