[wp-trac] [WordPress Trac] #12870: Edit page for custom post type not showing slug & pretty permalink

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 6 13:13:42 UTC 2010


#12870: Edit page for custom post type not showing slug & pretty permalink
--------------------------+-------------------------------------------------
 Reporter:  vlasky        |       Owner:                  
     Type:  defect (bug)  |      Status:  new             
 Priority:  normal        |   Milestone:  3.0             
Component:  Post Types    |     Version:  3.0             
 Severity:  normal        |    Keywords:  slug, permalinks
--------------------------+-------------------------------------------------
 I am using 3.0-beta1. I have registered a custom post type called
 'mycustom'.

 In permalink settings, I have a custom structure of:
 /archives/%postname%/

 When I edit a post of my custom post type, instead of seeing the text box
 that displays the slug underneath the title, I see the following:

 Permalink:
 http://wp.remoteexperiments.com:808/wordpress/?post_type=mycustom&p=44 and
 then a button marked 'Change Permalinks'

 Enclosed is a screenshot, and here is the code I have used to register the
 custom type. Note that I have tried both with and without the 'rewrite'
 option.

 $supports = array( 'title', 'editor', 'custom-fields', 'revisions');

 $args = array ('label' => __('MyCustom'),
  'singular_label' => __('MyCustom'),
  '_builtin' => false,
  'public' => true,
  'show_ui' => true,
  'capability_type' => 'post',
  'supports' => $supports,
  'exclude_from_search' => true,
  'hierarchical' => false
 // 'rewrite' => array('slug' => 'mycustom')
 );

 register_post_type('mycustom', $args);

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


More information about the wp-trac mailing list