Custom Post Type Saving as Draft
-
Hello, I’ve run into an odd issue that I haven’t been able to find a solution for.
I have a custom post type that has been created (along with several others), yet every time a new post is created and published it only saves it as a draft. However, if I use quick edit from the menu I can change the published status to published and save it and that works.
The odd thing is I’m using very similar code for several other custom post types and they all work fine and this was working originally and only recently started not working. I can’t find any solutions on the web so I’m requesting assistance.
Also, I should note that the post does save, it just saves as draft.
Register Hook
register_post_type( 'speakerbooks', array ( 'description' => 'Speaker Books', 'show_ui' => true, 'menu_position' => 7, 'exclude_from_search' => false, 'supports' => array( 'title', 'editor'), 'public' => false, 'rewrite' => array( 'slug' => 'speakerbooks', 'with_front' => 'false' ), 'labels' => array( 'name' => 'Speaker Books', 'singular_name' => 'Speaker Book', 'add_new' => 'Add New Book', 'add_new_item' => 'Add New Book', 'edit' => 'Edit Book', 'edit_item' => 'Edit Book', 'new_item' => 'New Book', 'view' => 'View Books', 'view_item' => 'View Book', 'search_items' => 'Search Books', 'not_found' => 'No books found.', 'not_found_in_trash' => 'No books found in the trash.' ), 'register_meta_box_cb' => 'add_speakers_metaboxes' ) );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom Post Type Saving as Draft’ is closed to new replies.