• Resolved keto4vegans

    (@keto4vegans)


    When I activated Relevassi, it reordered my manually ordered taxonomies in most places – search results, and most of my widgets on various pages. On the page I have linked, the green icons on the pictures are in the wrong order and the categories below these (Main, Sides, etc.) are also in the wrong order. You can also see if you scroll through, that they are not even consistently in the same wrong order. The order varies. When I deactivate Relevassi, they go back to their correct order. What’s going on here and can this be prevented/fixed? Your product did exactly what I wanted and I would really like to use it, but can’t if the order of icons and categories are random. Thank you.

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

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

    (@msaari)

    Do you mean the nutritional information under the post title? How are those elements printed on the page, and how have you manually ordered them, exactly?

    Please explain the mechanism here in more detail. Right now, I have no idea how it’s even possible Relevanssi could affect anything like this. Is there any searching or post querying involved?

    Relevanssi hooks to posts_pre_query and posts_request, but I don’t know how a taxonomy list would be passed through these post filters.

    Thread Starter keto4vegans

    (@keto4vegans)

    Thank you for the reply. The plugin I am using for manual ordering is called Simple Custom Post Order. According to ChatGPT:

    🚩 What can interfere with it:

    ✅ 1️⃣ Plugins or Themes Ignoring menu_order:

    • Many themes, Elementor widgets, or plugins:
      • Use queries with orderby => 'date' or orderby => 'title'.
      • Omit orderby entirely, causing WordPress to fall back to date or ID.
    • This bypasses your manual order entirely.

    ✅ 3️⃣ Plugins Modifying pre_get_posts or WP_Query:

    • Search plugins (e.g., Relevanssi).
    • SEO plugins (Yoast, Rank Math) altering queries.
    • Custom functions in your functions.php affecting queries globally.

    These can override orderby or add filters changing query behavior.

    Here are some screenshots to better explain:

    I’m hoping there is a solution that allows me to use both of these plugins as they are both quite valuable to the appearance and functionality of my site.

    Thank you for your help. I appreciate it.

    Heather

    Plugin Author Mikko Saari

    (@msaari)

    I’m very familiar with these post order plugins interfering with search results, but I’ve never heard of a case where it’s the other way around. Relevanssi uses the orderby parameter it gets to sort posts (and that’s why Simple Custom Post Order causes problems with Relevanssi, as it sets the orderby), but Relevanssi never sets the value itself.

    Do you perhaps have a custom function that fixes the orderby parameter so that Relevanssi works correctly with Simple Custom Post Order? Such function, if not done correctly, can change the orderby parameter for SCPO too where it shouldn’t. Especially if ChatGPT is involved, that would not be surprising.

    Thread Starter keto4vegans

    (@keto4vegans)

    Problem solved. Thank you!

    When I first activated Relevanssi and saw the order of my icons had changed, I added a php snippet in an attempt to fix it, but it didn’t have any effect. I’m not sure why there would have been an initial unordering when I added Relevanssi. I might have had another php snippet still active when I first saw the reordering, but that one didn’t contain the orderby parameter. I deactivated it soon after activating Relevanssi. Anyhow, I have now deactivated the snippet with the orderby parameter and the order has returned to my manually set order. I also reactivated the snippet to see if the problem returned, and it didn’t. Anyhow, the problem is solved. Great plugin. I’ll be sure to leave a review.

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

The topic ‘Ingoring/Overriding Manual Sort Order’ is closed to new replies.