Post Types exist in wp_posts.post_type, where as Taxonomies exist in wp_terms_taxonomy.taxonomy
We should use one set of code for Post Types in general, and one set of code for Taxonomies in general - It doesn't make much sense to add this as additional code - it should replace the existing Categories / Posts / Pages code.
A slight change in the way the relationship is stored will be required though, we should discuss further
Scott Kingsley Clark - 10 Jan 2010, 2:33pm
i think it may be best to combine some of our existing post types like Post / Page as well as Taxonomies like Categories to simplify the PICK relationships and code necessary, by making it generalized it will cover all Post Types and Taxonomies
Matt - 13 Jan 2010, 10:07am
Agreed. Then the user could use the "PICK filter" column to manually choose the post_type(s)...
post_type IN ('page', 'post', 'something_else')
Scott Kingsley Clark - 13 Jan 2010, 12:51pm
Well.. it should be more in the User Interface, so they could select which post_type (like an attribute), perhaps we should save this for when we redo the UI for the Setup tabs
Scott Kingsley Clark - 3 Sep 2010, 12:45am
With all the new changes, to relate going forward we will store CPT and Taxonomies (along with other stuff in the 'object' field. Examples:
- object = post (pickval = empty)
- object = page (pickval = empty)
- object = cpt (pickval = cptname)
- object = tag (pickval = empty)
- object = category (pickval = empty)
- object = taxonomy (pickval = taxonomyname)
- object = comment (pickval = empty)
- object = user (pickval = empty)
- object = pod (pickval = podname)
All existing Category pickval data goes into the options JSON
Scott Kingsley Clark - 3 Sep 2010, 12:47am
The reasoning behind the separation of Pod objects and CPT objects are that there can be completely separate CPT built outside of Pods, which shouldn't cause an additional query to check if it's a Pods-based CPT or not in use
Scott Kingsley Clark - 3 Sep 2010, 12:49am
I'm not partial to storing post / page in the CPT object pickval, same with tag / category in the taxonomy object pickval. That could simplify things a lot possibly.