[Plugin: Relevanssi – A Better Search] How to filter custom post types in search?
-
I am having a problem understanding Relevanssi’s FAQ. I understand its just adding
&post_type=news
into the URL after the ?s parameter. But I am having trouble adding it to the search parameter in the WordPress searchform. I am not that good with the whole $_GET and $_POST.In your FAQ you say that you should use filters, but I would like to see some code examples how exactly these filters should be used. I just want to add “&post_type=news” when I am searching from a particular searchfield. How can I achieve that? It sounds like a dumb question, but I am having a hard time here.
Thanks for an awesome plugin! Keep up the good work!
- The topic ‘[Plugin: Relevanssi – A Better Search] How to filter custom post types in search?’ is closed to new replies.