Relevanssi - A Better Search
Can Relevanssi search and display post featured images? (4 posts)

  1. Rafael_Magnvs
    Posted 3 years ago #

    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


  2. Mikko Saari
    Plugin Author

    Posted 3 years ago #

    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).

  3. Rafael_Magnvs
    Posted 3 years ago #

    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?

  4. Mikko Saari
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic