Ready to get started?Download WordPress


Display categories of all posts within search result (2 posts)

  1. Rafael_Magnvs
    Posted 1 year ago #

    When the user performs a search on my website, all results are displayed based on relevance. Therefore, posts from different categories appear on the list.

    I already have in place a "result counter" which says:

    "We have found (# of results) results"

    What I want to add is the categories of all posts within the search result. The message would go:

    "We have found (# of results) results" in the Category 1, Category 2 and Category 3"

    Anyone can point me in the right direction?

    Thank you so much for any future insights

  2. I've seen something like this done by filtering results from the Relevanssi plugin.

    Here's an article on the relevanssi_hits_filter: http://www.relevanssi.com/knowledge-base/relevanssi_hits_filter/

Topic Closed

This topic has been closed to new replies.

About this Topic