WordPress page not showing up – replaced with last 10 posts?

The problem is with the rewrite rules generated with the post type- they’re a bit greedy and are capturing those requests. WordPress is trying to query for a matching category_type, which isn’t actually an object type, and in the absence of any other valid query argument, it runs the main blog query. You could manually … Read more

Capibilities of CPT WordPress

Adding custom capabilities should use the ‘admin_init’ hook. Your function can look like this: function add_bounty_product_caps() { $role = get_role( ‘mmv_multi_vendor’ ); $role->add_cap( ‘edit_crea_resi’ ); $role->add_cap( ‘edit_crea_resis’ ); $role->add_cap( ‘edit_others_crea_resis’ ); $role->add_cap( ‘publish_crea_resis’ ); $role->add_cap( ‘read_crea_resi’ ); $role->add_cap( ‘read_private_crea_resis’ ); $role->add_cap( ‘delete_crea_resi’ ); $role->add_cap( ‘edit_published_crea_resis’ ); $role->add_cap( ‘delete_published_crea_resis’ ); $role->add_cap( ‘edit_crea_spedizioni’ ); $role->add_cap( ‘edit_crea_spedizionis’ ); … Read more