Is it possible to associate different kinds of custom post types one to the other?

I might be thinking too hard about this problem and i’m thinking the solution might be easier than we’re i’m heading.

Here’s what i’m trying to accomplish: there a winery website built on wp and uses custom post types for “Wines” -> every wine has it’s own description, picture, etc (cabarnet 2005, cabarnet 2006 etc…). Now, most wines have won medals – some of them even won up to 8 medals. i want to showcase all medal relevant to a specific wine in his specific page AND i want to have another page that showcases all medals, chronologically.

Read More

I figured i might be able to accomplish this by creating a custom post type “medal” and to somehow associate the medal to the wine that won it. but can i associate the ‘medal’ object in a many to one relation to the ‘wine’ object? how can i do that?

Any Ideas?

Related posts

Leave a Reply

1 comment