PHP code for using custom post types with wordpress.