[wp-hackers] term_meta

Alex King lists at alexking.org
Sat Mar 30 21:06:30 UTC 2013


You might take a look at this:

https://github.com/crowdfavorite/wp-tax-post-binding

it binds a custom post type to your taxonomy and creates a post for each term you create. Changes to your terms are mirrored to the posts. You then manage your meta, content, media, etc. as attached to the post, with easy accessor methods for getting to that data from the term.

This way you're always swimming downstream.

I use it for Threads, if you're interested in sample code:

https://github.com/crowdfavorite/wp-threads
http://wordpress.org/extend/plugins/threads/
http://alexking.org/blog/2013/03/17/announcing-threads

Cheers,
--Alex

http://alexking.org | http://crowdfavorite.com




On Mar 30, 2013, at 12:51 PM, Haluk Karamete <halukkaramete at gmail.com> wrote:

> two questions...
> 
> What is the ETA on term_meta?
> 
> and what would you recommend for the time being for this need?
> 
> What I need to is the following;
> 
> for each taxonomy_term, I'd like to have brief description, detailed
> description, a representative image ref, type ( such as it's a place/ or
> people or event or a concept etc and depending on which ever type it is
> some more properties such as if it's a place, is that a geographical
> location, school, landmark, etc and if it was of the type of  people, is
> that a politician, athlete etc etc...
> 
> What's the best way to handle this need.
> 
> One idea is to copy a post_meta table and the API's that deal with that a
> put together something that mimics similar functionality, similar API
> names. But I think someone might have already done that.
> 
> Another idea is to create an internal CPT called "term_taxonomies", and
> create a post for each and every term created under the post_tags. ( I have
> a controlled tag library so the tags do not grow wild ).
> 
> This way, I plan on doing things like when the user is on say, /tag/istanbul
> 
> do a look up on the slug "istanbul" to locate the corresponding CPT entry
> and read the image, description, type info and display things with it. Kind
> of like what google has started doing as demonstrated on this URL.
> 
> https://www.google.com/search?q=istanbul&rlz=1C1CHFX_enUS486US486&aq=f&oq=istanbul&aqs=chrome.0.57j61j59j5j60j0.2335j0&sourceid=chrome&ie=UTF-8
> 
> Of course, I would like to get links on that zone such as istanbul
> landmarks, schools, as clickable links.
> 
> What's your take on this? How would you pull this off with the current
> state of WP?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list