• So I have a bunch of sites that I am using Relevanssi on and have recently discovered that the ones which are using WordPress 4.0 are not working.

    I have put the exact same theme on two different installations of WordPress, one of which is 3.9.2 and the other is 4.0. On the 3.9.2 site my results are sorted by relevance as expected, but on the 4.0 they are being sorted with the default wordpress order by date.

    All the plugins are the same on the two sites and the settings in relevanssi are the same. I am not sure what the issue could be other than a conflict between Relevanssi and WP4.0. Any guidance on to how I could trouble shoot this if it that is not the issue would be much appreciated.

    https://www.ads-software.com/plugins/relevanssi/

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

    (@msaari)

    Relevanssi generally works with WP 4.0, but I’ve noticed some issues. Not in search like that, though, but on archive pages.

    Is your Relevanssi up to date? Start with that, if not.

    First step is to see if Relevanssi is being triggered. In lib/search.php in Relevanssi folder there’s a function called relevanssi_query(). Does it get run when a search is made? Does it call relevanssi_do_query()?

    Thread Starter belljr56

    (@belljr56)

    Yes I have the most up to date version of Relevanssi on all the sites.

    I believe that those functions are being run as the Relevanssi search log in the WP-Admin is logging the queries. I am not sure how else I could determine if they are running or not.

    The only other possibility that I can see is that there is a conflict between the latest versions of Relevanssi and Types. I am currently on a slightly older version of types on the site where Relevanssi is working correctly.

    Thread Starter belljr56

    (@belljr56)

    Ok I have now confirmed that the version of Types has nothing to do with the issue as I have put the older version on the site with WP 4.0 and relevanssi is still not working. The only difference between these two sites that I can find is the wordpress version.

    Thread Starter belljr56

    (@belljr56)

    Ok so I have now found out the issue is not with WP4.0 it is actually an issue between the intuitive post order plugin https://www.ads-software.com/plugins/intuitive-custom-post-order/ which allows for the ordering of posts by dragging and dropping them in the admin window.

    I believe the ICPO plugin is over riding the relevanssi sort, do you have any idea how we could make this so that is not the case? I really need both plugins to work on my sites.

    Thank you for the help!

    Plugin Author Mikko Saari

    (@msaari)

    Latest version of Relevanssi has filter hooks “relevanssi_orderby” and “relevanssi_order”, perhaps you can use them to adjust the orderby parameters.

    I was looking for my issue (works locally but not on server) and found this. Just to add that my local install also uses ICPO and the results work as expected, even respecting ICPO post order.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not working on WordPress 4.0?’ is closed to new replies.