custom excerpt functionality not working
-
Hello Mikko,
I am using Relevanssi version 3.3.7.1
The theme I am using is Vivid by Bluthemes version 1.1.I chose your plugin mainly for its ability to display post excerpts in the search results. Unfortunately, I am having some difficulty getting this aspect to work.
I have confirmed that some of the option changes that I have tried are working normally. For example, I have been able to create an index with no problem. Also, I can “Limit searches” to 30, and only 30 total results are returned. So I know that the plugin is at least working.
The problem I’m having is that my results are always returned as full posts, not excerpts. I have the box for “Create custom search result snippets” checked, and “Length of the snippet” is set to 200 words. So I should be getting search results that are excerpts of 200 words, but I always get the entire post content.
The Vivid theme that I am using has a file called searchform.php. I have pasted the code below. Could I ask for your help in identifying what might be the issue with this search template code? It is quite short.
Thank you very much.
‘<form action=”<?php echo home_url( ‘/’ ); ?>” method=”get” class=”searchform” role=”search”>
<fieldset>
<input type=”text” name=”s” value=”<?php the_search_query(); ?>” placeholder=”<?php _e(‘Search..’, ‘bluth’); ?>”/>
</fieldset>
</form>’
- The topic ‘custom excerpt functionality not working’ is closed to new replies.