wordpress - Custom Post Type Admin Post Status Not Working -


for life of me, can not figure out.

i set custom post type in wordpress so:

register_post_type( 'myposttype',     array(         'labels' => array(             'name' => __( 'myposttypename' ),             'singular_name' => __( 'myposttypename' )         ),         'public' => true,         'has_archive' => true,         'supports' => array('title', 'custom-fields')      ) ); 

when first started added add_filter( 'map_meta_cap', 'my_map_meta_cap', 10, 4 ); basic capabilities. think may have set part wrong, got rid of , returned post type normal capabilities.

now whenever try access custom post type in admin, run weird problems. namely, no matter post status click on (published, drafts, private, etc.) published posts. sorting columns , other similar admin functions don't work @ all. it's edit.php broken, specific custom post type. works fine on other custom post types.

i've tried everything, right down deleting every mention of custom post type admin panel , trying register again, , nothing works. need keep slug custom post type same, i'd open registering new post type, moving posts on , changing slug can't figure out way it.

anyway, i'd appreciate in figuring out how fix custom post type admin panel.

thanks

do have "posts_orderby" filter added anywhere?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -