Not sure if this isn't working because I'm on 3.0...I've attempted to implement these and I'm getting a 404 error. Here's my process:
1) Update to the latest SVN
2) Go into Functions.php and create the following:
add_action('init', 'beers_custom_init');
function beers_custom_init() {
register_post_type('beers', array(
'label' => 'Beers',
'public' => true,
'show_ui' => true,
'_builtin' => false,
'capability_type' => 'post',
'hierarchical' => true,
'rewrite' => array('slug' => 'beers'),
'query_var' => true,
'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes')
));
}
So far so good. I see custom post type in dashboard now.
3) Add type-beers.php to /carrington-blog/posts
*Set to defaults except that I point to loop/loop-beers.php*
4) Add the following to loop-beers.php
global $wp_query;
$wp_query = new WP_Query("post_type=beers&post_status=publish&posts_per_page=4");
if (have_posts()) {
while (have_posts()) {
the_post();
cfct_template_file('content', 'content-beers.php');
}
}
?>