How to include specific custom post types in WordPress search results

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.

Add this to your functions.php file


Leave a Reply

Your email address will not be published. Required fields are marked *