Thanks Tom, Actually, that’s exactly what I tried but wasn’t sure what would be a good flow to keep it in the spirit of GP (upgrade proof, good quality code 🙂
So, will this be a good approach?
1. copy search.php to my child theme.
2. In this file look at $post_type = $_GET[‘post_type’];
3. if it is My Custom Post Type ( docs, in this case), call a different template say search-docs.php with the following code?
get_template_part( ‘content’, ‘search-docs’ );
btw, I noticed that in GP’s search.php you currently have following line. I thought that looked like a recursive call to the same file. That confused me a bit.
get_template_part( ‘content’, ‘search’ );