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();
Related Posts
- Force Search Results to Show Excerpt
- Force Showing Excerpts When Showing Search Results
- Display Search Query When Using Genesis Framework
- Always show "Read more" when using GeneratePress
- Modify 'Read more...' link
- Always Show the "Read More" Link When Using the Astra Theme
- Use FacetWP with the Astra Theme
- Customize Search Box Placeholder Text Using Genesis Framework
- Highlight Search Terms in Post Titles When Using Relevanssi