the how will depend on your theme.
general:
– find out which theme template generates the search results – http://codex.wordpress.org/Template_Hierarchy
– this is possibly using the_excerpt()
within the loop – http://codex.wordpress.org/Function_Reference/the_excerpt
– change it to the_content()
– http://codex.wordpress.org/Template_Tags/the_content
– then (optional) use the ‘more-tag’ when writing your posts to limit the amount of content shown in the serach results – http://codex.wordpress.org/Customizing_the_Read_More
(some themes, for instance Twenty Eleven in codntent.php, do use a conditional statement in the loop to switch from ‘content’ and ‘excerpt’ in search results)
Hi. Thanks for replying.
This is what my page.php looks like:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
What am I suppose to add or remove from it in order to have photos in search result? Just the photos and the post title (no Read More… or anything)
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]