WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
[resolved] Results ignore post_type query string (3 posts)

  1. Dalton
    Member
    Posted 3 years ago #

    This is a fanstastic plugin, thanks so much!

    One small issue I noticed, in our old standard WP results results we could filter by post type in the URL like this:

    http://example.org/?s=new+york+city&post_type=post

    Which would only show matches that were posts, or

    http://example.org/?s=new+york+city&post_type=page

    Which would only return matches that were pages

    Relevanssi seems to ignore this query and just return all matches. This is important behavior for us as we're using WP as a CMS and need to keep the blog post search results separate from the rest of the site. Any ideas?

    Thanks,
    Dalton

  2. Mikko Saari
    Member
    Plugin Author

    Posted 3 years ago #

    Relevanssi does support filtering by post_type exactly like you present here, and at least on my sites it works without problems.

    If it doesn't work for you, then it could be some conflict with another plugin. Hard to say without seeing your site.

  3. Dalton
    Member
    Posted 3 years ago #

    My apologies, looks like a misconfiguration on my part. Great plugin!

    Thanks again.
    Dalton

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags