[wp-trac] [WordPress Trac] #13712: When Pretty Permalinks Enabled Custom Post Types 404 Not Found

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 3 14:21:40 UTC 2010


#13712: When Pretty Permalinks Enabled Custom Post Types 404 Not Found
--------------------------+-------------------------------------------------
 Reporter:  jackreichert  |       Owner:  ryan      
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Permalinks    |     Version:  3.0       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------

Comment(by jackreichert):

 Sure

 <?php   //Custom Post Types
         register_post_type('newsletters', array(        'label' =>
 'Newsletters','public' => true,'show_ui' => true,'capability_type' =>
 'post','hierarchical' => true,'can_export' => true,'rewrite' =>
 array('slug' => 'newsletter'),'query_var' => false,'supports' =>
 array('title','editor','excerpt','trackbacks','custom-
 fields','comments','revisions','thumbnail','author','page-attributes',))
 );

         //Custom Taxonomies
         register_taxonomy('countries','post',array( 'hierarchical' =>
 false, 'label' => 'Countries','show_ui' => true,'query_var' =>
 true,'rewrite' => array('slug' => ''),'singular_label' => 'Country') );
 ?>

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


More information about the wp-trac mailing list