[wp-testers] Custom post type disappears when a post is un-published
Michael E. Hancock
justmichaelh at gmail.com
Thu May 27 11:43:57 UTC 2010
----- 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