[wp-trac] Re: [WordPress Trac] #3723: Tagging

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 10 03:21:22 GMT 2007

#3723: Tagging
 Reporter:  ryan         |        Owner:  ryan
     Type:  enhancement  |       Status:  new 
 Priority:  normal       |    Milestone:  2.2 
Component:  General      |      Version:  2.1 
 Severity:  normal       |   Resolution:      
 Keywords:  tags         |  
Comment (by ryan):

 Here's an untested, partial patch that lays some groundwork for using the
 categories table for tags.  A tagged_count field in the categories table
 tracks number of posts/pages using the tag and a new post2tag associates
 posts to tags.

 I'm thinking queries for categories should query both categories and tags.
 category_name would match a proper category named "foo" or a tag named
 "foo" (which are the same object in the DB). Given one post categorized as
 "foo" and another tagged as "foo", a category query for "foo" would match
 both.  This means that the /category/foo/ permalink is both a category and
 tag permalink.  The user could set the permalink to be /tag/foo/ if so

 As for template functions, there will be separate API for tags so that
 themes can display category and tag info for a post separately.  We might
 want a way for themes to say "combine tags and categories" so that they
 can exclusively use the category template functions. In this situation,
 get_the_category(), for example, would return both tags and categories.

Ticket URL: <http://trac.wordpress.org/ticket/3723#comment:20>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list