WordPress.org

Forums

Relevanssi where to put the_excerpt() in search.php (4 posts)

  1. Sarah
    Member
    Posted 1 year ago #

    I am a newbie, have installed Relevanssi and am having trouble getting it to work. In fact I'm not sure it is working at all - so I looked for a query_posts but didn't find one, thought that perhaps the problem was in the excerpts being too big, showing the whole list instead of the area of the search term ( I really only need to search the content on one page/post on the wp site. Think a list in which the user can find an item.) So, I thought perhaps I need to put in the_excerpt() but I have no idea where.

    Sorry to bother you with such a basic question.
    Here is a pastebin with the php from the search.php for my theme.

    Thank you so much,
    Sarah

  2. WPyogi
    Forum Moderator
    Posted 1 year ago #

    You need to post on the plugin's own sub-forum:

    http://wordpress.org/support/plugin/relevanssi

  3. Mikko Saari
    Member
    Posted 1 year ago #

    The way the posts are printed out is here:

    get_template_part( 'content/content', get_post_format() );

    So, it is defined somewhere else. Maybe your theme has a setting that lets you choose whether search results page shows exceprts or full posts?

  4. Sarah
    Member
    Posted 1 year ago #

    Thank you Mikko, I've posted a query on the theme developer's website to find out where the parameters for the search results is located. Since I don't know php I may need additional guidance on how to change the php but I'll try to do it on my own.

    I really appreciate you taking the time to answer all these questions people have! Stellar support for Revelanssi!
    Sarah

Topic Closed

This topic has been closed to new replies.

About this Topic