[wp-hackers] How to create relations between custom post types?

Mike Schinkel mikeschinkel at newclarity.net
Sat May 29 22:24:27 UTC 2010

On May 29, 2010, at 4:41 PM, Michael Pretty wrote:
> I've had to do a similar thing to this and start by saying, its not the easiest to do.
> Like how Mike mentioned below, you setup both the taxonomy and the post_type, but turn off the rewrite rules for the taxonomy.
> -For the taxonomy, give it a different capability strings so that normal users can't add/delete them directly.

Thanks for that. Helpful.

> -Link the custom post to its term by storing the term_id in the post_meta of the post.  We've learned that trying to match them up via slug/post_name fields becomes a nightmare due to conflicts.

Really?  I'd love to hear some elaboration on that so I'll know what issues to look out for.

> Sorry if this isn't a clear explanation.  If you have specific questions, I can explain further.

Crystal clear, at least for me.


More information about the wp-hackers mailing list