Custom Post type 'exclude_from_search'=>true not working
-
I created a custom post type “Editable Areas” and set the exclude_from_search to TRUE. But when I try a search it INCLUDES the custom post type. Below is the function code:
$args = array( 'labels' => $labels, 'hierarchical' => false, 'description' => 'Edit the footer and global sidebar items here', 'supports' => array( 'title', 'editor' ), 'public' => false, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'show_in_nav_menus' => false, 'publicly_queryable' => false, 'exclude_from_search' => true, 'has_archive' => false, 'query_var' => false, 'can_export' => true, 'rewrite' => true, 'capability_type' => 'post'
Running WP 3.4, no custom post type plugins or search altering plugins. Simple WP setup with a few plugins but nothing that should interfere with the custom post type and search function.
Any help is appreciated.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Post type 'exclude_from_search'=>true not working’ is closed to new replies.