[wp-trac] [WordPress Trac] #18950: get_post_types() does not return post-types registered with verbose alternatives of the $public argument
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 17 15:05:16 UTC 2012
#18950: get_post_types() does not return post-types registered with verbose
alternatives of the $public argument
----------------------------+------------------------------
Reporter: fireproofsocks | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version: 3.4.1
Severity: major | Resolution:
Keywords: |
----------------------------+------------------------------
Changes (by doodlebee):
* version: 3.2.1 => 3.4.1
Comment:
I just wanted to add that I am using WordPress 3.4.1, and I have my custom
post types registered with
{{{
'public' => true
}}}
however,
{{{
get_post_types( array( 'public' => true, '_builtin' => false ) );
}}}
returns an empty array every time.
I've also added
{{{
'show_ui' => true,
'publicly_queryable' => true,
'public' => true,
}}}
(with and without the "public" setting in there) to my post type
registration, and the array returned is empty, no matter what I use within
get_post_types(). Custom post types are never returned.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18950#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list