// functions.php add_action( 'init', 'updateSidebarsPostType', 99 ); /** * updateSidebarsPostType * * @author Joe Sexton */ function updateSidebarsPostType() { global $wp_post_types, $wp_rewrite; if ( post_type_exists( 'multiple-sidebars' ) ) { // exclude from search results $wp_post_types['multiple-sidebars']->exclude_from_search = true; } }