• Hi!
    im using listingpro theme and trying to integrate relevanssi with.
    i added the relevanssi_do_query to the search template:
    $my_query = null;
    $my_query = new WP_Query($args);
    relevanssi_do_query($my_query);

    the search run perfectly
    but when i enter to a category on my site (without a search – just clicking on the category) there is no results at all
    maybe relevanssi cant read the category taxonomy?

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

    (@msaari)

    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

    Plugin Author Mikko Saari

    (@msaari)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘problem with categories’ is closed to new replies.