Yoast SEO is hiding my custom posts in admin
-
I have a rather strange problem with Yoast SEO (v 9.3) on one of my sites.
After enabling Yoast SEO plugin, I can’t see my custom posts in wp-admin any more… When I debug the query using pre_get_posts action, the posts are there, but after
WPSEO_Link_Columns::count_objects
is called onmanage_posts_extra_tablenav
hook, then globalwp_query
object gets empty and no rows are printed inWP_Posts_List_Table
any more…Here’s my CPT registration code:
register_post_type( 'order', array( 'labels' => array( 'name' => 'Orders', 'singular_name' => 'Order' ), 'public' => false, 'exclude_from_search' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'publicly_queryable' => false, 'has_archive' => false, 'capability_type'=> 'page', 'hierarchical' => false, 'supports' => array( 'title' ), 'rewrite' => false ) );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Yoast SEO is hiding my custom posts in admin’ is closed to new replies.