[wp-trac] [WordPress Trac] #12966: get_post_types returning more than desired results

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 12 16:51:11 UTC 2010


#12966: get_post_types returning more than desired results
--------------------------+-------------------------------------------------
 Reporter:  michaelh      |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  3.0              
Component:  Template      |     Version:  3.0              
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------

Comment(by michaelh):

 Here's the custom post types from my functions.php


 {{{
 register_post_type('property', array(
         'label' => __('Real Estate'),
         'singular_label' => __('Property'),
         'public' => true,
         'show_ui' => true, // UI in admin panel
         'capability_type' => 'post',
         'hierarchical' => false,
         'rewrite' => array("slug" => "property"), // Permalinks format
         'supports' => array('title','author')
 ));

 register_post_type('podcast', array(
         'label' => __('Podcasts'),
         'singular_label' => __('Podcast'),
         'public' => true,
         'show_ui' => true,
         'capability_type' => 'post',
         'hierarchical' => false,
         'rewrite' => false,
         'query_var' => false,
         'supports' => array('title', 'editor', 'author')
 ));

 register_post_type('classified', array(
         'label' => 'Classifieds',
         'singular_label' => 'Classified',
         '_builtin' => false,
         'public' => true,
         'publicly_queryable' => true,
         'show_ui' => true, // UI in admin panel
         'capability_type' => 'post'
 ));
 }}}

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


More information about the wp-trac mailing list