Viewing 1 replies (of 1 total)
  • Plugin Contributor W3 Eden, Inc.

    (@w3eden)

    Create a new option field named __wpdm_exclude_from_search with value = 1 ( run code update_option('__wpdm_exclude_from_search' , 1); once by putting it at the end of functions.php with the active theme and then remove it ) or add following code at the end of fucntions.php:

     
    add_action( 'init', 'wpdm_exclude_from_search', 99 );
    function wpdm_exclude_from_search() {
    	global $wp_post_types;
    	if ( post_type_exists( 'wpdmpro' ) ) {		 
    		$wp_post_types['wpdmpro']->exclude_from_search = true;
    	}
    }
    

    However, we shall add options to control post type parameters soon.

Viewing 1 replies (of 1 total)
  • The topic ‘Search’ is closed to new replies.