Problem with filters and Relevanssi
-
Hi! I have a custom template with a search.php where it shows the search for three Custom Post Types (publication, project and news-post).
Previously I had a code that worked great, it displayed the posts and used various filters to narrow down the results. I had a custom query with WP_Query to work with the filters.
Now I have installed the Relevanssi plugin, which requires the use of the main WordPress query instead of a custom one (as I understand it). To maintain the filters, I added this function in functions.php. The problem is that the filter by author no longer works. When displaying the entries and filtering by author no results appear, but with the custom query it worked. What am I doing wrong?
In the image I show the codes with comments for better understanding. The only filter that does not work is the author filter, the rest (that I did not add to the image) work fine.
- You must be logged in to reply to this topic.