How can I just show the post content in a search result? Currently, the search results displays the post title, author and date above the page content.
Here is how it looks now: http://sikkervaccination.dk/?s=thailand
Some themes like Twenty Fourteen include a template tag included in the content.php file for entry meta which includes the author and date:
The content.php file also includes
The search.php file includes this tag which includes the content.php
To display content only on the search results pages, you would need to create your own custom search.php file.
To do this using the Twenty Fourteen theme for example, copy over the search.php file to a child theme and modify the code there.
You could then copy over the content.php file from your parent theme to your child theme, rename it to something like customsearch.php and change the template template in your child themes search.php file to:
Then you simply modify your customsearch.php file in your child theme and your code is saved from any parent theme updates.
You can usually modify the display of your search results by editing a loop in
In your post loop in search.php, add this code