CPT still showing in search results
-
Hi
Ive excluded a CPT from showing in search results yet they still show.
Exclude From Search is set to
TRUE
in the CPTIve cleared all cache, deactivated all but essential plugins and they still show in the search results.
What could be causing this to happen?
The page I need help with: [log in to see the link]
-
Can you share your post type settings from the CPTUI Tools menu and the “post type” tab. It’ll be the big blob of text on the right.
Hi @tw2113 code below, the CPT i have the issue with is the Recipes
recipe
{"guides":{"name":"guides","label":"Guides","singular_label":"Guide","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"","rest_controller_class":"","has_archive":"true","has_archive_string":"guides","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"7","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-welcome-learn-more","supports":["title","editor","thumbnail","excerpt","trackbacks","custom-fields","comments","revisions","author","page-attributes","post-formats"],"taxonomies":["category","post_tag"],"labels":{"menu_name":"Guides","all_items":"All Guides","add_new":"Add new","add_new_item":"Add new Guide","edit_item":"Edit Guide","new_item":"New Guide","view_item":"View Guide","view_items":"View Guides","search_items":"Search Guides","not_found":"No Guides found","not_found_in_trash":"No Guides found in bin","parent":"Parent Guide:","featured_image":"Featured image for this Guide","set_featured_image":"Set featured image for this Guide","remove_featured_image":"Remove featured image for this Guide","use_featured_image":"Use as featured image for this Guide","archives":"Guide archives","insert_into_item":"Insert into Guide","uploaded_to_this_item":"Upload to this Guide","filter_items_list":"Filter Guides list","items_list_navigation":"Guides list navigation","items_list":"Guides list","attributes":"Guides attributes","name_admin_bar":"Guide","item_published":"Guide published","item_published_privately":"Guide published privately.","item_reverted_to_draft":"Guide reverted to draft.","item_scheduled":"Guide scheduled","item_updated":"Guide updated.","parent_item_colon":"Parent Guide:"},"custom_supports":""},"recipes":{"name":"recipes","label":"Recipes","singular_label":"Recipe","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"","rest_controller_class":"","has_archive":"true","has_archive_string":"food-recipes","exclude_from_search":"true","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"food-recipes","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"8","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-buddicons-topics","supports":["title","editor","thumbnail","excerpt","trackbacks","custom-fields","comments","revisions","author","page-attributes","post-formats"],"taxonomies":["recipe_tag","ingredients","chef","recipe_category"],"labels":{"menu_name":"Recipes","all_items":"All Recipes","add_new":"Add new","add_new_item":"Add new Recipe","edit_item":"Edit Recipe","new_item":"New Recipe","view_item":"View Recipe","view_items":"View Recipes","search_items":"Search Recipes","not_found":"No Recipes found","not_found_in_trash":"No Recipes found in bin","parent":"Parent Recipe:","featured_image":"Featured image for this Recipe","set_featured_image":"Set featured image for this Recipe","remove_featured_image":"Remove featured image for this Recipe","use_featured_image":"Use as featured image for this Recipe","archives":"Recipe archives","insert_into_item":"Insert into Recipe","uploaded_to_this_item":"Upload to this Recipe","filter_items_list":"Filter Recipes list","items_list_navigation":"Recipes list navigation","items_list":"Recipes list","attributes":"Recipes attributes","name_admin_bar":"Recipe","item_published":"Recipe published","item_published_privately":"Recipe published privately.","item_reverted_to_draft":"Recipe reverted to draft.","item_scheduled":"Recipe scheduled","item_updated":"Recipe updated.","parent_item_colon":"Parent Recipe:"},"custom_supports":""},"win":{"name":"win","label":"Wins","singular_label":"Win","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"","rest_controller_class":"","has_archive":"true","has_archive_string":"wins","exclude_from_search":"false","capability_type":"post","hierarchical":"true","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"9","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-buddicons-groups","supports":["title","editor","thumbnail","excerpt","trackbacks","custom-fields","comments","revisions","author","page-attributes","post-formats"],"taxonomies":["category","post_tag"],"labels":{"menu_name":"Win","all_items":"All Win","add_new":"Add new","add_new_item":"Add new Win","edit_item":"Edit Win","new_item":"New Win","view_item":"View Win","view_items":"View Win","search_items":"Search Win","not_found":"No Win found","not_found_in_trash":"No Win found in bin","parent":"Parent Win:","featured_image":"Featured image for this Win","set_featured_image":"Set featured image for this Win","remove_featured_image":"Remove featured image for this Win","use_featured_image":"Use as featured image for this Win","archives":"Win archives","insert_into_item":"Insert into Win","uploaded_to_this_item":"Upload to this Win","filter_items_list":"Filter Win list","items_list_navigation":"Win list navigation","items_list":"Win list","attributes":"Win attributes","name_admin_bar":"Win","item_published":"Win published","item_published_privately":"Win published privately.","item_reverted_to_draft":"Win reverted to draft.","item_scheduled":"Win scheduled","item_updated":"Win updated.","parent_item_colon":"Parent Win:"},"custom_supports":""},"feature":{"name":"feature","label":"Features","singular_label":"Feature","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"","rest_controller_class":"","has_archive":"true","has_archive_string":"features","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"6","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-align-right","supports":["title","editor","thumbnail","excerpt","trackbacks","custom-fields","comments","revisions","author","page-attributes","post-formats"],"taxonomies":["category","post_tag"],"labels":{"menu_name":"Features","all_items":"All Features","add_new":"Add new","add_new_item":"Add new Feature","edit_item":"Edit Feature","new_item":"New Feature","view_item":"View Feature","view_items":"View Features","search_items":"Search Features","not_found":"No Features found","not_found_in_trash":"No Features found in bin","parent":"Parent Feature:","featured_image":"Featured image for this Feature","set_featured_image":"Set featured image for this Feature","remove_featured_image":"Remove featured image for this Feature","use_featured_image":"Use as featured image for this Feature","archives":"Feature archives","insert_into_item":"Insert into Feature","uploaded_to_this_item":"Upload to this Feature","filter_items_list":"Filter Features list","items_list_navigation":"Features list navigation","items_list":"Features list","attributes":"Features attributes","name_admin_bar":"Feature","item_published":"Feature published","item_published_privately":"Feature published privately.","item_reverted_to_draft":"Feature reverted to draft.","item_scheduled":"Feature scheduled","item_updated":"Feature updated.","parent_item_colon":"Parent Feature:"},"custom_supports":""},"news":{"name":"news","label":"News","singular_label":"News","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"","rest_controller_class":"","has_archive":"true","has_archive_string":"news","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"6","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-id-alt","supports":["title","editor","thumbnail","excerpt","trackbacks","custom-fields","comments","revisions","author","page-attributes","post-formats"],"taxonomies":["category","post_tag"],"labels":{"menu_name":"News","all_items":"All News","add_new":"Add new","add_new_item":"Add new News","edit_item":"Edit News","new_item":"New News","view_item":"View News","view_items":"View News","search_items":"Search News","not_found":"No News found","not_found_in_trash":"No News found in bin","parent":"Parent News:","featured_image":"Featured image for this News","set_featured_image":"Set featured image for this News","remove_featured_image":"Remove featured image for this News","use_featured_image":"Use as featured image for this News","archives":"News archives","insert_into_item":"Insert into News","uploaded_to_this_item":"Upload to this News","filter_items_list":"Filter News list","items_list_navigation":"News list navigation","items_list":"News list","attributes":"News attributes","name_admin_bar":"News","item_published":"News published","item_published_privately":"News published privately.","item_reverted_to_draft":"News reverted to draft.","item_scheduled":"News scheduled","item_updated":"News updated.","parent_item_colon":"Parent News:"},"custom_supports":""},"issues":{"name":"issues","label":"Magazines","singular_label":"Magazine","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"","rest_controller_class":"","has_archive":"true","has_archive_string":"magazines","exclude_from_search":"false","capability_type":"post","hierarchical":"false","rewrite":"true","rewrite_slug":"","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"5","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-book","supports":["title","editor","thumbnail","excerpt","trackbacks","custom-fields","comments","revisions","author","page-attributes","post-formats"],"taxonomies":["category","post_tag"],"labels":{"menu_name":"Magazines","all_items":"All Magazines","add_new":"Add new","add_new_item":"Add new Magazine","edit_item":"Edit Magazine","new_item":"New Magazine","view_item":"View Magazine","view_items":"View Magazines","search_items":"Search Magazines","not_found":"No Magazines found","not_found_in_trash":"No Magazines found in bin","parent":"Parent Magazine:","featured_image":"Featured image for this Magazine","set_featured_image":"Set featured image for this Magazine","remove_featured_image":"Remove featured image for this Magazine","use_featured_image":"Use as featured image for this Magazine","archives":"Magazine archives","insert_into_item":"Insert into Magazine","uploaded_to_this_item":"Upload to this Magazine","filter_items_list":"Filter Magazines list","items_list_navigation":"Magazines list navigation","items_list":"Magazines list","attributes":"Magazines attributes","name_admin_bar":"Magazine","item_published":"Magazine published","item_published_privately":"Magazine published privately.","item_reverted_to_draft":"Magazine reverted to draft.","item_scheduled":"Magazine scheduled","item_updated":"Magazine updated.","parent_item_colon":"Parent Magazine:"},"custom_supports":""},"restaurant_reviews":{"name":"restaurant_reviews","label":"Reviews","singular_label":"Review","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"","rest_controller_class":"","has_archive":"true","has_archive_string":"food-reviews","exclude_from_search":"false","capability_type":"post","hierarchical":"true","rewrite":"true","rewrite_slug":"food-reviews","rewrite_withfront":"true","query_var":"true","query_var_slug":"","menu_position":"6","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-admin-multisite","supports":["title","editor","thumbnail","excerpt","trackbacks","custom-fields","comments","revisions","author","page-attributes","post-formats"],"taxonomies":["category","post_tag"],"labels":{"menu_name":"Reviews","all_items":"All Reviews","add_new":"Add new","add_new_item":"Add new Review","edit_item":"Edit Review","new_item":"New Review","view_item":"View Review","view_items":"View Reviews","search_items":"Search Reviews","not_found":"No Reviews found","not_found_in_trash":"No Reviews found in bin","parent":"Parent Review:","featured_image":"Featured image for this Review","set_featured_image":"Set featured image for this Review","remove_featured_image":"Remove featured image for this Review","use_featured_image":"Use as featured image for this Review","archives":"Review archives","insert_into_item":"Insert into Review","uploaded_to_this_item":"Upload to this Restaurant Review","filter_items_list":"Filter Reviews list","items_list_navigation":"Reviews list navigation","items_list":"Reviews list","attributes":"Reviews attributes","name_admin_bar":"Review","item_published":"Review published","item_published_privately":"Review published privately.","item_reverted_to_draft":"Review reverted to draft.","item_scheduled":"Review scheduled","item_updated":"Review updated.","parent_item_colon":"Parent Review:"},"custom_supports":""},"interviews":{"name":"interviews","label":"Interviews","singular_label":"Interview","description":"","public":"true","publicly_queryable":"true","show_ui":"true","show_in_nav_menus":"true","delete_with_user":"false","show_in_rest":"true","rest_base":"","rest_controller_class":"","has_archive":"true","has_archive_string":"interviews","exclude_from_search":"false","capability_type":"post","hierarchical":"true","rewrite":"true","rewrite_slug":"food-interviews","rewrite_withfront":"true","query_var":"true","query_var_slug":"food-interviews","menu_position":"5","show_in_menu":"true","show_in_menu_string":"","menu_icon":"dashicons-admin-users","supports":["title","editor","thumbnail","excerpt","trackbacks","custom-fields","comments","revisions","author","page-attributes","post-formats"],"taxonomies":["category","post_tag"],"labels":{"menu_name":"Interviews","all_items":"All Interviews","add_new":"Add new","add_new_item":"Add new Interview","edit_item":"Edit Interview","new_item":"New Interview","view_item":"View Interview","view_items":"View Interviews","search_items":"Search Interviews","not_found":"No Interviews found","not_found_in_trash":"No Interviews found in bin","parent":"Parent Interview:","featured_image":"Featured image for this Interview","set_featured_image":"Set featured image for this Interview","remove_featured_image":"Remove featured image for this Interview","use_featured_image":"Use as featured image for this Interview","archives":"Interview archives","insert_into_item":"Insert into Interview","uploaded_to_this_item":"Upload to this Interview","filter_items_list":"Filter Interviews list","items_list_navigation":"Interviews list navigation","items_list":"Interviews list","attributes":"Interviews attributes","name_admin_bar":"Interview","item_published":"Interview published","item_published_privately":"Interview published privately.","item_reverted_to_draft":"Interview reverted to draft.","item_scheduled":"Interview scheduled","item_updated":"Interview updated.","parent_item_colon":"Parent Interview:"},"custom_supports":""}}
Very sorry about this delay here, I somehow missed that you had a reply submitted.
Did you make any headway with this or are you still needing some help?
- The topic ‘CPT still showing in search results’ is closed to new replies.