#15334 closed defect (bug) (duplicate)
Unable to edit custom post types in 3.01 alpha
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 3.1 |
Component: | Posts, Post Types | Keywords: | |
Focuses: | Cc: |
Description
When viewing custom post types in the editor in 3.01 alpha the normal view/edit options are not available when hovering over the post title. The titles themselves are not links so there is no way to edit a post after it has been created. Hovering over the title only shows the "View" option rather than the full set of "Edit | Quick Edit | Trash | View".
I am downloading the 3.01 alpha nightlies and have had this issue for the past few weeks. Just wanted to make sure it was not overlooked for 3.1.
Attachments (1)
Change History (9)
#2
@
13 years ago
Here is my post-type definition. This code works fine on the stable release of 3.01, just not in alpha. The attachement shows a screen shot of the cursor hovering over the post title "test again". You can see there is no underline on the title as it is not linking to the edit page. There is also only "view" as an option which takes you to the post on the front end.
add_action( 'init', 'create_my_post_types' ); function create_my_post_types() { register_post_type( 'casestudy', array( 'labels' => array( 'name' => __( 'Case Studies' ), 'singular_name' => __( 'Case Study' ), 'add_new' => __( 'Add New' ), 'add_new_item' => __( 'Add New Case Study' ), 'edit' => __( 'Edit' ), 'edit_item' => __( 'Edit Case Study' ), 'new_item' => __( 'New Case Study' ), 'view' => __( 'View Case Study' ), 'view_item' => __( 'View Case Study' ), 'search_items' => __( 'Search Case Studies' ), 'not_found' => __( 'No Case Studies found' ), 'not_found_in_trash' => __( 'No Case Studies found in Trash' ), 'parent' => __( 'Parent Case Study' ), ), 'public' => true, 'can_export' => true, 'supports' => array( 'title','thumbnail','comments'), 'rewrite' => array( 'slug' => 'casestudies'), 'menu_position' => 5, 'hierarchical' => false, 'show_in_nav_menus' => true, 'capability_type' => 'post', 'query_var' => "casestudy", 'menu_icon' => get_template_directory_uri().'/images/summit.png', ) ); }
#4
follow-up:
↓ 5
@
13 years ago
In the description of the ticket, you say "3.01 alpha"... Are you sure you don't mean "3.1 alpha" if so, this is known, and won't likely be overlooked. (Could be read "3.0.1" or "3.1" but they are very different.)
If "3.1" a Temp/Recommended work-around: add 'map_meta_cap' => true
to your arguments. Hope that helps you.
#5
in reply to:
↑ 4
@
13 years ago
- Version changed from 3.0.1 to 3.1
Replying to WraithKenny:
In the description of the ticket, you say "3.01 alpha"... Are you sure you don't mean "3.1 alpha" if so, this is known, and won't likely be overlooked. (Could be read "3.0.1" or "3.1" but they are very different.)
If "3.1" a Temp/Recommended work-around: add
'map_meta_cap' => true
to your arguments. Hope that helps you.
Sorry, I did mean 3.1 alpha. Thanks
I haven't seen this. How are you registering your post type?