Erin Paddock has worked in a variety of roles since 1996. Erin was a Quality Control Inspector at SAS MANUFACTURING, INC. from 1996 to 2007, when they transitioned to a Medical Assistant at Community Medical Providers. In 2012, they moved to a role as an Engineering Technician at Outsource Manufacturing, Inc. and then to Neotech in 2015, where they held the positions of Program Manager and Document Control Specialist. Most recently, they began working as a Program Manager at Means Engineering, Inc. in 2022.
I'm using a custom post type for a portfolio and I want to add a custom taxonomy for the type of work it is.
I want to add a custom taxonomy for the type of work it is. I want to be able to assign multiple types of work to each portfolio item.
For example, if I had a portfolio item that was a website, I would assign it the "website" and "web design" taxonomies.
To do this, you will need to register a custom taxonomy for your portfolio post type. You can do this by adding the following code to your theme's functions.php file:
function portfolio_taxonomies() {
// Add new taxonomy, make it hierarchical (like categories)
$labels = array(
'name' => _x( 'Types of Work', 'taxonomy general name' ),
'singular_name' => _x( 'Type of Work', 'taxonomy singular name' ),
'search_items' => __( 'Search Types of Work' ),
'all_items' => __( 'All Types of Work' ),
'parent_item' => __( 'Parent Type of Work' ),
'parent_item_colon' => __( 'Parent Type of Work:' ),
'edit_item' => __( 'Edit Type of Work' ),
'update_item' => __( 'Update Type of Work' ),
'add_new_item' => __( 'Add New Type of Work' ),
'new_item_name' => __( 'New Type of Work Name' ),
'menu_name' => __( 'Types of Work' ),
);
register_taxonomy('types_of_work',array('portfolio'), array(
'hierarchical' => true,
'labels' => $labels,
'show_ui' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'type-of-work' ),
));
}
add_action( 'init', 'portfolio_taxonomies', 0 );
Once you have added this code, you will be able to assign multiple types of work to each portfolio item. You can do this by editing the portfolio item and
Sign up to view 0 direct reports
Get started