[wp-testers] Custom post type disappears when a postis un-published (Michael E. Hancock)
Philip M. Hofer (Frumph)
philip at frumph.net
Thu May 27 18:31:19 UTC 2010
Cannot duplicate this problem., working fine over here, not changing the
post-type using quick-edit or post-editor when setting to draft saving and
Not sure why you have: 'rewrite' => array('slug' => ''), an empty slug.
should just do 'rewrite' => false ya? or just not have it there at all
----- Original Message -----
From: "Stephen Hammer" <sh.hoboy at gmail.com>
To: <wp-testers at lists.automattic.com>
Sent: Thursday, May 27, 2010 11:12 AM
Subject: Re: [wp-testers] Custom post type disappears when a postis
un-published (Michael E. Hancock)
> update -- it only seems to happen if you use the dropdown in the "Quick
> Edit" screen
> I used the Custom Post Type UI plugin, v 0.5.2
> Here is the register_post_type code it generated:
> register_post_type('artists', array( 'label' => 'Artists','public' =>
> true,'show_ui' => true,'capability_type' => 'post','hierarchical' =>
> false,'rewrite' => array('slug' => ''),'query_var' => true,'supports' =>
> I did _not_ paste this code into functions.php -- could that be the
> On May 27, 2010, at 8:00 AM, wp-testers-request at lists.automattic.com
>> Re: Custom post type disappears when a post is un-published
>> (Michael E. Hancock)
> ----- Original Message -----
> From: "Stephen Hammer" <sh.hoboy at gmail.com>
>> I wanted to remove a post from the archive page, so un-published the post
>> by changing its Status from "Published" to "Draft". But doing this also
>> somehow changes the post_type for that entry in the database from
>> "custom_type" to "post"
> This same problem has been reported in  and  but can't be
> Are you using a plugin to add the custom post type and if so what plugin
> Or are you using register_post_type in your theme's functions.php file?
> so please provide that code.
> Note - Using a custom post type of 'book', I just changed a book to Draft,
> then republished and at both stages the post_type in the database remained
> book. I'm using default permalinks with no plugins activated.
> wp-testers mailing list
> wp-testers at lists.automattic.com
More information about the wp-testers