I am facing problem while searching in wordpress.
I have used
<?php get_search_form(); ?>for making search bar and put it in our header file so that anybody can search through this.
But whenever we are trying to search using any keywords through this search box, we will get proper result for posts only(image, excerpt and with continue reading button), But our pages will not able to show proper excerpt instead it will taking some code related to that page with continue reading button.
Below is the link for your reference,
And also tell us, Is it a right way to add search box in our website, If it yes, then how do i design the search box with proper look.