• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Add Exactly The Same Taxonomies To Multiple Custom Post Types

WordPress doesn’t allow you to use register_taxonomy multiple times to add the same taxonomy type to more than 1 custom post type. If you try and do it that way, your custom taxonomy types will not display. At least they didn’t when i tested in Genesis.

In this example, we’re adding countries and regions to custom post types golf courses and golf resorts.

taxonomies

Here’s the code for Genesis users which enables you to add the same taxonomy to more than 1 custom post type. Included is the code which also creates both CPT’s used to test the code so all you may need to do is swap out all instances of the CPT & taxonomy names with your own.

Register for full access

Related Tutorials

  • Rewrite Permalink Structure To Include Taxonomy Term Slugs For Your Custom Post Type
  • Create Structure for Showing Taxonomies in Permalinks
  • add_rewrite_rule For Multiple Custom Taxonomy Types in Permalink Structure

Custom Post Type Taxonomy Terms

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.