[wp-testers] Custom post type disappears when a post is un-published (Michael E. Hancock)
sh.hoboy at gmail.com
Thu May 27 17:43:59 UTC 2010
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' => array('title','editor','excerpt','custom-fields','comments','thumbnail',)) );
I did _not_ paste this code into functions.php -- could that be the problem?
On May 27, 2010, at 8:00 AM, wp-testers-request at lists.automattic.com wrote:
> 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 duplicated.
Are you using a plugin to add the custom post type and if so what plugin is
Or are you using register_post_type in your theme's functions.php file? If
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.
More information about the wp-testers