how to search custom post type in wordpress code example
Example 1: custom post type query loop wordpress
Custom Post Type Query Loop
Example 2: wordpress search in custom fields
If someone is looking for a solution to this problem is to recommend the plugin:
https://wordpress.org/plugins/acf-better-search/