Yeah, unfortunately I really know nothing about wordpress, only as much as I can glean from tutorials and weave in with my limited html/css knowledge. It was easy to create the custom taxonomy, I just don't know how to actually implement the taxonomy the same way the tags are implemented.
Code:
/**
* Add custom taxonomies
*
* Additional custom taxonomies can be defined here
* http://codex.wordpress.org/Function_Reference/register_taxonomy
*/
function add_custom_taxonomies() {
// Add new "Model" taxonomy to Posts
register_taxonomy('model', 'post', array(
// Hierarchical taxonomy (like categories)
'hierarchical' => true,
// This array of options controls the labels displayed in the WordPress Admin UI
'labels' => array(
'name' => _x( 'Model', 'taxonomy general name' ),
'singular_name' => _x( 'Model', 'taxonomy singular name' ),
'search_items' => __( 'Search Model' ),
'all_items' => __( 'All Model' ),
'parent_item' => __( 'Parent Model' ),
'parent_item_colon' => __( 'Parent Model:' ),
'edit_item' => __( 'Edit Model' ),
'update_item' => __( 'Update Model' ),
'add_new_item' => __( 'Add New Model' ),
'new_item_name' => __( 'New Model Name' ),
'menu_name' => __( 'Model' ),
),
// Control the slugs used for this taxonomy
'rewrite' => array(
'slug' => 'model', // This controls the base slug that will display before each term
'with_front' => false, // Don't display the category base before "/model/"
'hierarchical' => true // This will allow URL's like "/locations/boston/cambridge/"
),
));
}
add_action( 'init', 'add_custom_taxonomies', 0 );
?>
That right there is the actual chunk of code from my functions page. Is this all PHP code or something? That's something I'm entirely unfamiliar with.