If your search results template is set to only display excerpts, then it will only display excerpts. So, it’s all up to your search results template.
Hello Mikko
I can’t get any snippets to show. It’s probably because I haven’t set up the breakdown format right? I’ve simply added your examples ‘%title%, %body%, %tags%’
Thanks!
http://elated.co.za
The breakdown format is not necessary. You need to enable the snippets and have excerpts shown on your search results page.
Does the breakdown appear? If not, then the problem is that your site is skipping Relevanssi completely. See most important Relevanssi debugging trick.
Hello Mikko
Thanks, but query_posts() doesn’t appear in the search.php
This is the code I have:
‘ <?php if (have_posts()) : ?>
<ul id=”archive”>
<?php while (have_posts()) : the_post(); ?>’
But I’m confused if I take out have_posts() doesn’t that mean we are not asking for results?
You need to have the have_posts()
in the search results page.
Please answer the following questions:
– Do the breakdowns appear in the search results if you enable them?
– Does your search results page use the_content()
or the_excerpt()
to show the results?
Sorry Mikko, I understand now.
Resolved. Added <?php the_excerpt(); ?> below the permalink
Thank you!