[wp-trac] [WordPress Trac] #10786: Implementation of %my_taxonomy% in permastructs is incomplete

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 30 01:51:41 UTC 2009


#10786: Implementation of %my_taxonomy% in permastructs is incomplete
--------------------------+-------------------------------------------------
 Reporter:  johnbillion   |       Owner:  ryan                         
     Type:  defect (bug)  |      Status:  new                          
 Priority:  normal        |   Milestone:  2.9                          
Component:  Permalinks    |     Version:  2.9                          
 Severity:  minor         |    Keywords:  has-patch commit dev-feedback
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Is there some way we can do this without importing the chief annoyance of
 {{{%category%}}}, namely that the category chosen is always just the one
 with the smallest ID? The fact that you can use the category query tag in
 a post's permalink has always been sort of a hack.  It's a hack because it
 works sensibly only when a site is using one category per post.  No other
 potential permalink query tag can have multiple values per post.

 And can we avoid adding the overhead of looping through all taxonomies per
 given post type, then retrieving all terms of that taxonomy for that post?

 Suggestions:
  * Filter {{{$rewritecode}}} and {{{$rewritereplace}}} so plugins that
 want to employ outre query tags in permalinks can do so easily.
  * Add a property to a taxonomy that specifies that a post type can be
 assigned only one term of that taxonomy.
  * Add an argument to {{{add_rewrite_tag()}}} which puts that tag in the
 {{{$rewritecode}}} pool.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10786#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list