Hello! I've managed to add thumbnails to my archive pages with help from the forums, so I'm hoping you can help me figure out how to add the same feature to my search results. Basically, I have deactivated the new default thumbnail feature and added my own code. You can see an example of the thumbnails on my category pages (see http://cookieandkate.com/category/photography/).
Now I just want to add the same thumbnail feature to my search results pages. As you can see, they do not include thumbnails: http://cookieandkate.com/?s=dog&searchsubmit=Search
I'm hoping I can modify this code a little bit to add the thumbnails to my search page, too. Unfortunately I'm a dolt when it comes to php.
Here's the code in my functions.php that pertains to the thumbnails:
add_theme_support('post-thumbnails');
function my_post_title($title) {
if (is_archive()) {
return get_the_post_thumbnail(NULL, 'thumbnail') . $title;
} else {
return $title;
}
}
add_filter('thematic_postheader_posttitle', 'my_post_title');
function my_post_thumbs() {
return false;
}
add_filter('thematic_post_thumbs','my_post_thumbs');
Please let me know what to add/change/how to add thumbnails to search pages. I would really, really appreciate your help!