Unless the theme actually does a search on the category template, Relevanssi shouldn’t affect the category in any way. Does the category use the same template as the search?
Thread Starter
adirtp
(@adirtp)
Hi Mikko, thanks for the quick reply
You absolutely right about that!
This is the search templete, which it seems to control almost anything of the theme:
https://pastebin.com/VrhW635Y (line:182)
also when i try to debug using the filter:
——–
add_filter( ‘relevanssi_results’, ‘rlv_check_results’ );
function rlv_check_results( $results ) {
var_dump( $results );
exit();
}
——–
im getting Array {0}
Any thoughts my friend?
thank you
That’s some seriously weird theme-building. Even making any sense of that template would take so much time that I’ll have to pass here – I’m sorry, but I can’t help you with this. It’s quite possible trying to make this theme compatible with Relevanssi is just going to be too much trouble.
If you want to try it, at least make sure you don’t run relevanssi_do_query() unless there’s a search term. $sKeyword needs to be set, otherwise Relevanssi won’t work and will break those category searches. If the search term is set, Relevanssi should have no problems handling the categories.