• Skip to primary navigation
  • Skip to main content
  • Skip to footer
Calgary Wordpress and Genesis Web Development
  • Home
  • News
  • Portfolio
  • Services
  • Contact
  • Code Samples
  1. Home
  2. Tips
  3. How to create a Wordpress custom post taxonomy

How to create a WordPress custom post taxonomy

September 24, 2015 By Jamie Kembel

//* Create SERVICE TYPE custom taxonomy

add_action( 'init', 'kembel_servicestype_taxonomy' );
function kembel_servicestype_taxonomy() {


register_taxonomy( 'services', 'service',
array(
'labels' => array(
'name' => _x( 'Services Type', 'taxonomy general name', 'kembel' ),
'add_new_item' => __( 'Add New Services Type', 'kembel' ),
'new_item_name' => __( 'New Services Type', 'kembel' ),

),
'exclude_from_search' => false,
'has_archive' => true,
'hierarchical' => false, // this should be false if you want to re-order your list with 'menu order', or true if you want "parents"
'rewrite' => array( 'slug' => 'services', 'with_front' => false ),
'show_ui' => true,
'show_tagcloud' => false,
)
);

}

 

About Jamie Kembel

Jamie Kembel is the primary designer and programmer behind Kembel.ca

Jamie has been building websites and dominating results in Google for more than a decade. Jamie's background supporting small businesses and increasing revenue is supported by his tenure as an executive ownership partner for Canada's largest electronics retailer.

Jamie has earned hands-on experience in branding, marketing, and successful online best-practices.

"It isn't about "getting a website". It is about branding, developing and even more importantly... maintaining an online presence for your company."

Address

23 Walden Place SE
Calgary Alberta
T2X 1Y5

Hours

*By Appointment Only

Copyright © 2025 Kembel Web Design ยท Log in