Not able to deactivate it
-
We have a custom post type which is shown separately on its own archive page and which should not get indexed by relevanssi. I wanted to implement a simple custom search box for the post type on the archive page, by using WP_Query with the s argument.
The problem is, that relevanssi hooks into the search query and thereby returns an empty search result.
I triedfunction kupf_dont_use_relevanssi () { return false; } add_filter ("relevanssi_search_ok", "kupf_dont_use_relevanssi"); $books = new WP_Query( $args );
But it isnt working. Any help?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Not able to deactivate it’ is closed to new replies.