• Josh

    (@jmccallweb)


    Is it possible to create a custom search form with Relevanssi that only searches for terms within a certain taxonomy. For example, I have a taxonomy called “artists” with various names within (Jane Doe, John Doe, etc.). I need a form that only searches and returns those terms.

    I know how to limit a form to a post type but even to posts within a certain category, but not how to limit it to a taxonomy and terms itself.

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

    (@msaari)

    Yes, you can do that, but in order to index and search taxonomy terms, you need Relevanssi Premium.

    Thread Starter Josh

    (@jmccallweb)

    Thanks! If we get the premium version, how would we edit the form to search only within a custom taxonomy?

    Plugin Author Mikko Saari

    (@msaari)

    Just add

    <input type="hidden" name="post_types" value="artists" >

    The taxonomy name can be used as a post type for Relevanssi.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom form to search only within a custom taxnomy?’ is closed to new replies.