[wp-trac] [WordPress Trac] #13864: 'view' link on a custom post type wrong

WordPress Trac wp-trac at lists.automattic.com
Sat Jun 12 12:32:09 UTC 2010


#13864: 'view' link on a custom post type wrong
--------------------------+-------------------------------------------------
 Reporter:  mattsains     |        Owner:            
     Type:  defect (bug)  |       Status:  closed    
 Priority:  normal        |    Milestone:            
Component:  Post Types    |      Version:  3.0       
 Severity:  normal        |   Resolution:  worksforme
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by dd32):

 Incase someone else finds this ticket (instead of opening a new one..)

 When you create custom post types, You must flush the rewrite rules. You
 can either do this by $GLOBALS['wp_rewrite']->flush_rules(); or by
 visiting the permalinks page and hitting save.

 You should only ever flush the rewrite rules the first time your register
 the post type.

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


More information about the wp-trac mailing list