OK, if you want to exclude download posts in the search result in your site, please put below code in your theme functions.php
,
add_action( 'init', 'wpdm_custom_type', 99 );
function wpdm_custom_type() {
global $wp_post_types;
if ( post_type_exists( 'wpdmpro' ) ) {
$wp_post_types['wpdmpro']->exclude_from_search = true;
}
}
thanks