[wp-hackers] alternative taxonomy to relate users to pages
anybody at nobodyhere.com
anybody at nobodyhere.com
Wed Feb 10 11:48:01 UTC 2010
I'd like to relate users to pages and post, which isn't supported by
taxonomies.
Eventually I'd like to relate anything (user, post, page etc) to anything.
I couldn't find an existing plugin, so I decided to write my own.
But before I start coding, I'd appreciate some feedback.
After reading Murray Woodman
(http://murraywoodman.com/355/wordpress-taxonomies) I'm considering the
following mysql table structure:
RELATIONS
- id
- subject_id
- subject_type (user/page/post/comment)
- predicate_id
- object_id
- object_type
PREDICATES
- id
- title (e.g. "is part of", "likes")
- slug (e.g. "part_of", "likes")
Any suggestions?
Marcel van der Drift
More information about the wp-hackers
mailing list