Custom post types are not included in the WordPress search results by default - adding this snippet to you functions.php creates a function that allows specific custom post types to be queried and searched by WordPress.
Tag: custom post type
This snippet will automatically include all public post types, that have not been excluded from searches in your search results.
Here is how to exclude a custom post type from the WordPress search results.
This snippet will show you how to extend the WordPress search function to include custom post meta.