WordPress
Everything I’ve written on WordPress, newest first.
From the archive
Notes from my old blog on mohamedsharaf.net (2010–2018), rewritten and checked. Some are dated; the dates tell you how much.
- WordPress · 8 November 2014
Delete orphaned post meta in WordPress
Clean up custom-field rows left behind by deleted posts, with one SQL query and a backup first.
- WordPress · 21 October 2014
Custom post type plugins for WordPress: a 2014 comparison
A look back at which plugins people used to build custom post types, and what most sites use now.
- WordPress · 14 November 2013
Writing secure WordPress plugins and themes
The handful of habits that prevent most WordPress plugin vulnerabilities.
- WordPress · 23 May 2011
Disable or limit post revisions in WordPress
Stop WordPress from storing endless copies of every post, with one line in wp-config.php.
- WordPress · 18 May 2011
Give your WordPress custom post type its own menu icon
Replace the default pin icon in the WordPress admin menu with one that fits your content.
- WordPress · 4 May 2011
Useful wp-config.php settings for WordPress
The settings that live in wp-config.php, not in the admin panel, and the ones worth knowing.
- WordPress · 6 November 2010
WordPress custom taxonomies, explained
Categories and tags are only the start: how custom taxonomies let you organise content your own way.
- WordPress · 6 November 2010
WordPress custom fields: what they are and how to show them
Store extra details on a post, like a rating or a price, and display them in your theme.