WordPress.org

Support

Support » Plugins and Hacks » Relevanssi - A Better Search » [Resolved] Custom excerpts/snippets

[Resolved] Custom excerpts/snippets

  • I have “Custom excerpts/snippets” enabled. It works fine for the first 2 results. Then I get flooded with content – only because Relevansi is so darned efficient! I’d like to only display excerpts/snippets in my search results. Is this possible?

    I love thsi plugin – BTW!

    http://wordpress.org/extend/plugins/relevanssi/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mikko Saari

    @msaari

    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.

    karenelated

    @karenelated

    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

    Plugin Author Mikko Saari

    @msaari

    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.

    karenelated

    @karenelated

    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?

    Plugin Author Mikko Saari

    @msaari

    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?

    karenelated

    @karenelated

    Sorry Mikko, I understand now.

    Resolved. Added <?php the_excerpt(); ?> below the permalink

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Custom excerpts/snippets’ is closed to new replies.
Skip to toolbar