• Debugging with WP_DEBUG_LOG

    The constant WP_DEBUG_LOG is something I’ve only recently discovered — when added to wp-config.php it enables a log of WordPress errors and notices to be saved to wp-content/debug.log. define( WP_DEBUG_LOG, true ); This is very handy when debugging plugin errors, especially hidden ones like those which occur on plugin activation.

  • Give WordPress page’s excerpts

    A handy snippet to have to hand, for WordPress 3.0+: function enable_page_excerpt() { add_post_type_support( ‘page’, ‘excerpt’ ); } add_action(‘init’, ‘enable_page_excerpt’); Add that to your theme’s functions.php file and your good; pages will now show an excerpt panel.