• Resolved VoyantOne

    (@voyantone)


    If I set my default order in Searching to “most relevant” the blogmodule I use in Divi to display my category (archive) pages shows a random order. If I change it to post date, the order returns as expected, however it excludes random posts.

    If I disable the relevanssi plugin it also displays by post date (newest to oldest).

    As mentioned above I use a Divi theme, and it seems this behaviour is new since the last update of relevanssi.

    I have taken all the steps in troubleshooting mentioned, deactivated, deleted, reinstalled etc etc.

    I also noticed that when I freshly reinstalled relevanssi the whole category did not display any posts in the category, untill after I updated the Relevanssi database by (re)indexing the posts.

    • This topic was modified 4 years, 3 months ago by VoyantOne.

    The page I need help with: [log in to see the link]

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

    (@msaari)

    Has Divi been updated recently? They added some Relevanssi compatibility, but I’m not sure if it has been released yet. If you look at the /Divi/includes/builder/plugin-compat/ directory on your site, is there a file relevanssi.php there?

    If the update is out and you have it, if there’s a Blog module that’s set to do a search, Relevanssi will be used to provide the posts for the module. However, Relevanssi should not be involved unless the Blog module is doing a search.

    Thread Starter VoyantOne

    (@voyantone)

    Hi Mikko, the file is there.
    The blog module is not doing a search (as far as I am aware), the blog module is just displaying the posts in a category.

    Plugin Author Mikko Saari

    (@msaari)

    How would I go about reproducing this problem? How is the Blog module set up?

    Plugin Author Mikko Saari

    (@msaari)

    Ah, I managed to figure this out.

    In /Divi/includes/builder/plugin-compat/relevanssi.php there’s this line:

    if ( is_search() && function_exists( 'relevanssi_do_query' ) ) {

    This is not correct. It should be:

    if ( is_search() && function_exists( 'relevanssi_do_query' ) && $query->query_vars['s'] ) {

    in order to avoid this problem. I believe that if you fix it that way, the category pages should work just fine.

    I’ve informed Elegant Themes about this.

    Thread Starter VoyantOne

    (@voyantone)

    Hi Mikko,

    Yes that does solve the problem, let’s hope Divi updates soon!

    Plugin Author Mikko Saari

    (@msaari)

    I already got a response from Elegant Themes that they’re looking into this, so hopefully they’ll fix this soon.

    Thread Starter VoyantOne

    (@voyantone)

    Hi Mikko, just thought I’d give you a heads up, I’ve had several Divi updates, but no fixes yet, so I’ve had to update the code manually after every divi update. Fix still works though.

    Plugin Author Mikko Saari

    (@msaari)

    I haven’t heard from Elegant Themes, so I have no idea whether they’ve implemented this or not. I guess they’ll eventually get to it.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[NSFW] Relevanssi changing sort order of category pages’ is closed to new replies.