[wp-testers] custom post title error perhaps

Andrew Johnson andrew at aequ.com
Thu May 20 19:45:24 UTC 2010


having trouble getting the "Add New Post" to change. Its not changing to my Projects everywhere, only the label in the sidebar and the edit screen. Any ideas my problems or is there a bug here?? 

Here is my code:

		register_post_type('project', array(
			'label' => __( 'Project Files' ),
			'singular_label' => __( 'Project' ),
			'add_new' => __( 'Add Project' ),
			'add_new_item' => __( 'Add New Project' ),
			'edit' => __( 'Edit Project' ),
			'edit_item' => __( 'Edit This Project' ),
			'new_item' => __( 'New Project' ),
			'view' => __( 'View Project' ),
			'view_item' => __( 'View This Project' ),
			'search_items' => __( 'Search Projects' ),
			'not_found' => __( 'No Projects found' ),
			'not_found_in_trash' => __( 'No Projects found in Trash' ),
			'public' => true,
			'menu_position' => 5,
			'show_ui' => true, // UI in admin panel
			'_builtin' => false, // It's a custom post type, not built in
			'_edit_link' => 'post.php?post=%d',
			'capability_type' => 'post',
			'hierarchical' => false,
			'rewrite' => array("slug" => "project"), // Permalinks
			'query_var' => "project", // This goes to the WP_Query schema
			'supports' => array('title'),
			'show_ui' => true
		));

Thanks!

AndrewJohnson
andrew at aequ.com
580.302.0931








More information about the wp-testers mailing list