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

WP SITES

2669

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Tutorial Requests
  • Contact
  • Videos
  • Tags
  • Log in

Premium Member? - Request custom code

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

Brad Dalton Specializes In Genesis child theme customization & code modification. Read More…

Learn PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems