Force Search Results to Show Excerpt When Using Genesis Framework

To force the search results to show the post excerpt when using the Genesis framework, you can use this snippet in your search.php:

<?php

// Enable excerpts for search results
add_filter( 'genesis_pre_get_option_content_archive', 'wpkb_show_excerpts' );

function wpkb_show_excerpts() {
    return 'excerpts';
}

genesis();