Support » Plugin: Relevanssi - A Better Search » [Plugin: Relevanssi – A Better Search] Can Relevanssi search and display post featured images?

  • I am looking to separate two search result types (1)Posts and (2)Images.

    The post search is working perfectly, so now I am looking to get image results. Right now most of the weight is focused on tags and categories and very little on post title.

    Maintaining this same weight structure I want to bring relevant images based on the search criteria. Where, on the left hand side I am bringing the list of posts and on the right hand side I am bringing only images.

    My idea is to create a new category called “Images”. Then I would a create post in this category, determine the tags and add the featured image. Once the user performs a search, based on post tags, if there is post, it would show the featured image of the post (no link).

    Any thoughts on how to perform this task? Alternatives are also welcomed.

    Thank you

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


    Well, at least you can use relevanssi_hits_filter to sort out the search results to divide them to posts on the left side and images on the right side. If the image results are in a category, sorting the results is simple. (See user manual).



    Hi Mikko,

    I followed the steps in the user manual and I was able to achieve what I was looking for, as far as separating search results in specific categories.

    However, I do not want to have the “Everything else” (the heading) portion, which is currently displaying the same results on the left. How do I go about removing that?

    And finally, how would you recommend I excluded image results posts from the left hand side results?

    Plugin Author Mikko Saari


    I don’t know, since I’m not sure how you did that. Also, I try to earn a living doing WordPress hacks, so there are limits to how much I can help here on the open forums.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] Can Relevanssi search and display post featured images?’ is closed to new replies.