View Single Post
  #1  
Old 04-12-2012, 11:33 PM
seth17's Avatar
seth17 seth17 is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Dec 2009
Location: Kentucky
Posts: 1,538
Default Custom Post Types & Categories/Tags

I've created a custom post type called "Projects". I'm trying to get the categories and tags meta boxes to display in the content editor. So far no luck. Not sure what's wrong. Here's the code I've got:
PHP Code:
$labels = array(
    
'name' => _x'Projects' ),
    
'singular_name' => _x'project' ),
    
'add_new' => _x'Add New Project' ),
    
'add_new_item' => __'Add New Project' ),
    
'edit' => __('Edit Project'),
    
'edit_item' => __'Edit Project' ),
    
'new_item' => __'New Project' ),
    
'view' => __'View Project' ),
    
'view_item' => __'View Project' ),
    
'search_items' => __'Search Projects' ),
    
'all_items' => __'All Projects' ),
    
'not_found' => __'No Projects Found.' ),
    
'not_found_in_trash' => __'No Projects Found in Trash.' ),
    
'parent' => __('Projects'), 
    
'menu_name' => __'Projects' ),
    
'parent_item_colon' => ''
);
$args = array(
    
'labels' => $labels,
    
'public' => true,
    
'publicly_queryable' => true,
    
'exclude_from_search' => false,
    
'show_ui' => true,
    
'menu_position' => 5,
    
'menu_icon' => null,
    
'capability_type' => post,
    
'hierarchical' => true,
    
'supports' => array('title''editor''comments''thumbnail''excerpt''custom-fields''revisions''page-attributes''categories''genesis-seo''genesis-layouts', ),
    
'taxonomies' => array('post_tag''category', ),
    
'has_archive' => true,
    
'rewrite' => array('slug' => projects'with_front' => true, ),
    
'query_var' => true,
    
'can_export' => true,
    
'show_in_nav_menus' => true,
);

register_post_type('projects'$args); 
__________________
SpearsMarketing.com