WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#15334 closed defect (bug) (duplicate)

Unable to edit custom post types in 3.01 alpha

Reported by: lsparks 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)

Screen-shot-2010-11-08-at-12.36.26-PM.png (48.3 KB) - added by lsparks 10 years ago.
Hover over post title

Download all attachments as: .zip

Change History (9)

#1 @nacin
10 years ago

  • Keywords reporter-feedback added; custom post types removed

I haven't seen this. How are you registering your post type?

@lsparks
10 years ago

Hover over post title

#2 @lsparks
10 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',
		)
	);

}

#3 @lsparks
10 years ago

  • Cc lsparks added

#4 follow-up: @WraithKenny
10 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 @lsparks
10 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

#6 @WraithKenny
10 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate #14122

#7 @WraithKenny
10 years ago

  • Keywords reporter-feedback removed

#8 @scribu
10 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.