Category Archives: Code Snippets

Creating a Custom Post Type in WordPress 3.0

A really great new feature in WordPress is the ability to create custom post types. This allows you to write very little code, and create entire sections on your site using built in WordPress features and UI. Here is a … Continue reading

Posted in Code Snippets, Development, Life, PHP, Wordpress | Tagged , , | Leave a comment

Remove WordPress Version From Head Tag

Insert this into the functions.php page located in your theme file: remove_action ( ‘wp_head’, ‘wp_generator’ ) It will auto remove the tag that says: <meta name="generator" content="WordPress 3.0.1" />

Posted in Code Snippets, Development, HTML, PHP, Wordpress | Leave a comment

PHP Show All Errors

I tend to use this a lot on my dev sites to show my what my errors are instead of just seeing a blank white page. error_reporting ( E_ALL ); ini_set ( ‘display_errors’, ’1′ );

Posted in Code Snippets, Development, PHP | Tagged , , | Leave a comment