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

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 15 03:30:57 UTC 2009


#10786: Implementation of %my_taxonomy% in permastructs is incomplete
--------------------------+-------------------------------------------------
 Reporter:  johnbillion   |       Owner:  ryan                
     Type:  defect (bug)  |      Status:  new                 
 Priority:  normal        |   Milestone:  Unassigned          
Component:  Permalinks    |     Version:  2.9                 
 Severity:  minor         |    Keywords:  permalinks, taxonomy
--------------------------+-------------------------------------------------
 The `register_taxonomy()` function includes a call to `add_rewrite_tag()`
 which should allow for a site's permastruct to include a %my_taxonomy% tag
 just like you can include a %category% tag or a %tag% tag, however this
 implementation is incomplete and doesn't work.

 Example:

 `register_taxonomy('genre','post');`

 should allow you to create a permastruct (from the Settings->Permalinks
 screen) which includes %genre% in it.

 The problem is that `get_permalink()` doesn't check for custom taxonomies
 and the replacement of %genre% with your post's genre in the permalink
 doesn't happen.

 Patch upcoming.

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


More information about the wp-trac mailing list