Cannot add/insert image to custom post type.
-
Clicking the “Add Images” button when on a custom post type page brings up the “Add an image” overlay as you would expect but as soon as I try to insert an image (either from file or from media library) I get a blank white screen and the image is not inserted.
I am using the following code register the custom post type and everything else works fine.
/** * Add post types */ add_action('init', 'events_register'); function events_register() { $args = array( 'label' => __('photography'), 'singular_label' => __('photography'), 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => true, 'menu_position' => 5, 'supports' => array('title', 'editor', 'comments', 'revisions') ); register_post_type( 'photography' , $args ); }
Any help would be great! I have no idea why this problem occurs, I cna insert images into posts and pages fine.
Thanks in advance
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Cannot add/insert image to custom post type.’ is closed to new replies.