Mohamed Sharaf

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.

  1. 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.

  2. 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.

  3. WordPress · 14 November 2013

    Writing secure WordPress plugins and themes

    The handful of habits that prevent most WordPress plugin vulnerabilities.

  4. 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.

  5. 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.

  6. 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.

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

  8. 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.