Here is my code if you think that will help. Any ideas you might have is greatly appreciated. This is the last portion of the site and then I’m done.
// testimonial custom content type
add_action('init', 'testimonial_register');
function testimonial_register() {
$labels = array(
'name' => _x('Testimonials', 'post type general name'),
'singular_name' => _x('Testimonial', 'post type singular name'),
'add_new' => _x('Add New', 'testimonial item'),
'all_items' => __('All Testimonials'),
'add_new_item' => __('Add New Testimonial'),
'edit_item' => __('Edit Testimonial'),
'new_item' => __('New Testimonial'),
'view_item' => __('View Testimonial'),
'search_items' => __('Search Testimonials'),
'not_found' => __('Nothing found'),
'not_found_in_trash' => __('Nothing found in Trash'),
'parent_item_colon' => ''
);
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'query_var' => true,
'rewrite' => true,
'capability_type' => 'post',
'hierarchical' => false,
'menu_position' => 6,
'supports' => array('title','editor','thumbnail'),
'has_archive' => true
);
register_post_type( 'clientfeedback' , $args );
}
?>
<?php
// testimonial custom taxonomy
add_action('init', 'testimonial_taxonomies', 0);
function testimonial_taxonomies() {
$labels = array(
'name' => _x( 'Testimonial Types', 'taxonomy general name' ),
'singular_name' => _x( 'Testimonial Type', 'taxonomy singular name' ),
'search_items' => __( 'Search Testimonial Types' ),
'all_items' => __( 'All Testimonial Types' ),
'parent_item' => __( 'Parent Testimonial Type' ),
'parent_item_colon' => __( 'Parent Testimonial Type:' ),
'edit_item' => __( 'Edit Testimonial Type' ),
'update_item' => __( 'Update Testimonial Type' ),
'add_new_item' => __( 'Add New Testimonial Type' ),
'new_item_name' => __( 'New Testimonial Type Name' ),
'menu_name' => __( 'Testimonial Types' ),
);
register_taxonomy(
'testimonial', // internal name = machine-readable taxonomy name
'clientfeedback', // object type = post, page, link, or custom post-type
array(
'hierarchical' => true, // true for hierarchical like cats, false for flat like tags
'labels' => $labels, // the human-readable taxonomy name
'query_var' => true, // enable taxonomy-specific querying
'rewrite' => true // pretty permalinks for your taxonomy?
));
}
?>