Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Sam W.
PLUS
Sam W.
Courses Plus Student 994 Points

Relationship between CPT?

Hello Guys very cool site and awesome tutorials!

At the moment i have already done the tutorials for building a wordpress theme. Now i'm searching for a solution of my problem:

I have created two custom post types:

  1. Location
  2. Events

In my custom post type "events" i want to select one of my created location. I found a plugin which is really nice. It's called "CTP-onomies".

I prefer to create these taxonomy by my own but i do not find any documentations.

Do you have a tutorial for my problem? Or any tips?

Thanks a lot and regards from germany

2 Answers

Sam W.
PLUS
Sam W.
Courses Plus Student 994 Points

Dear Joakim,

Thanks a lot for your link i have try to create the taxonomy and it works but i want to transform a Custom Post Type into a category.

Sorry for my bad explanation. I try another one:

  1. Location is the first CPT (Custom Post Type). These are Page with it's own Layout.

  2. Events is my second CPT. For this pages i want to create Category but the categories are my CPT -> Locations.

I found a plugin called "CPT-onomies". I like the plugin but i want to learn to create my own CPT-Category :).