Would like to follow up on this: I tried simply pasting above code into better-search.php using Genesis Dynamik theme, so that the code looks like this:
$output .= '<h2><a href="'.get_permalink($search->ID).'" rel="bookmark">'.$post_title.'</a></h2>';
$output .= '<p>';
$output .= get_bsearch_score($search,$score,$topscore);
$before = __(' Posted on: ', BSEARCH_LOCAL_NAME);
$output .= get_bsearch_date($search,$before);
$output .= '</p>';
<?php echo get_the_post_thumbnail( $search->ID, $size, $attr ); ?>
$output .= '<p>';
$output .= get_bsearch_excerpt($search->ID,$bsearch_settings['excerpt_length']); // This displays the post excerpt / creates it. Replace with $output .= $content; to use content instead of excerpt
$output .= '</p>';
} //end of foreach loop
and unfortunately I get an error:
Parse error: syntax error, unexpected ‘<‘ in /Users/Paul/Documents/Websites/balanga.dev/wp-content/plugins/better-search/better-search.php on line 165
I’m not a coder, but I would love to get your plugin showing small thumbnails with the results. Did I adjust the code wrongly? Could I Beta test the plugin version that you are developing that achieves this?
Cheers