- This topic has 8 replies, 2 voices, and was last updated 7 years, 11 months ago by
Shahriar.
- AuthorPosts
- March 31, 2014 at 5:27 pm #53835
taughnee
MemberOn custom post types with the editor disabled, the Set Featured Image link doesn’t open in an iframe, but rather a new URL. I assume this is because the WP editor loads the necessary files through the wp_enqueue_media() function – but those aren’t loaded when the editor isn’t loaded.
You can reproduce by registering a custom post type without editor support. Add New custom post, click the Set Featured Image link.
add_action( 'init', 'test_register_cptest' ); function test_register_cptest() { $labels = array( 'name' => _x('CustomPosts', 'post type general name'), 'singular_name' => _x('CustomPost', 'post type singular name'), 'add_new' => __('Add New CustomPost'), 'all_items' => __('All CustomPosts'), 'add_new_item' => __('Add New CustomPost'), 'edit_item' => __('Edit CustomPost'), 'new_item' => __('New CustomPost'), 'view_item' => __('View CustomPost'), 'search_items' => __('Search CustomPosts'), 'not_found' => __('No CustomPosts found'), 'not_found_in_trash' => __('No CustomPosts found in Trash'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'description' => 'Custom Post Test', 'public' => true, 'publicly_queryable' => false, 'show_ui' => true, 'query_var' => false, 'show_in_menu' => true, 'menu_position' => 5, 'capability_type' => 'post', 'hierarchical' => true, 'supports' => array( 'title', 'thumbnail', 'page-attributes' ), ); register_post_type( 'customposttest', $args ); }
This behavior is verified with version 1.5.2 of the plugin, freshly updated a few minutes ago.
- This topic was modified 7 years, 11 months ago by
taughnee. Reason: fix code
March 31, 2014 at 5:33 pm #53837taughnee
MemberSorry, I couldn’t get the code view to work correctly.
April 2, 2014 at 4:56 pm #53852Shahriar
ModeratorPlease send a temporary wp-admin login info to contact@wpeden.com to check the issue. Thanks.
April 2, 2014 at 6:07 pm #53856taughnee
MemberAdded you as user; you should get mail with logins.
‘Testimonials’ is a custom post type where editor is not enabled. ‘Add New Testimonial’ and try to add featured image.
April 4, 2014 at 7:05 pm #53865Shahriar
ModeratorRequire admin access to edit plugin. Current role can’t do that. Change the role to admin and let me know. Thanks.
April 5, 2014 at 4:08 pm #53869taughnee
MemberI disallow file edits as standard practice.
File editor has been turned back on.
What is the latest version of the plugin and where do I get it?
April 8, 2014 at 6:52 am #53886Shahriar
ModeratorThis reply has been marked as private.April 8, 2014 at 8:43 pm #53887taughnee
Memberplease send to steve@sjurl.com, or taughnee@gmail.com
April 9, 2014 at 9:24 am #53892Shahriar
ModeratorSent to taughnee@gmail.com
- This topic was modified 7 years, 11 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.