• Hi,
    my website is created with OceanWP and Elementor. I have set up a WooCommerce shop that is working fine. The issue appears in a “shop preview” on my homepage, created as a loop carousel with WooCommerce products set as loop items. The homepage is created by Elementor.
    As you can see on my homepage, under the “Shop” preview there’s a “Date” preview that is sorted random. Actually the Event Widget is set to “Order by Date”, but the WooCommerce Loop Carousel above (which is set to “order by popularity”) affects any event widget that follows in its sorting function. When I set the shop loop to “order by date”, the following event widgets work just fine in ascending order. The event sorting does also work fine when I place the widgets above the shop loop.

    I’ve set up a staging site to show the issue more clearly: https://riddim.world/mystaging01/

    The event widgets above and under the “Shop” share the same settings. The upper ones work as they should, the ones after the shop don’t. So it seems like the the carousel query is affecting the following widgets, although they are in different containers.

    How can we fix this?

    Thanks and Greetings,
    Simon

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

Viewing 1 replies (of 1 total)
  • Plugin Support LovingBro (woo-hc)

    (@lovingbro)

    Hi @simonarnold1801,

    I can see how the loop carousel behaving differently is affecting the widgets that follow, especially when each widget is expected to maintain its own sorting logic. You’ve done a great job isolating the behavior by testing widget order and staging the issue.

    What you’re experiencing typically happens when a custom query is not properly reset after running. The WooCommerce loop carousel is likely modifying the global query, which then impacts any widgets rendered afterward.

    To address this:

    1. Ensure the query used in the carousel is properly reset
      If this is coming from a custom loop or widget, it should include a reset after execution, such as:
      wp_reset_postdata() or wp_reset_query() depending on how the query is built
    2. Check if Elementor or your theme is overriding queries globally
      Since you’re using OceanWP and Elementor, it’s possible the carousel widget or a hook is altering the main query instead of using a separate instance
    3. Try isolating the query
      If possible, configure the carousel to use a custom query ID or ensure it does not hook into pre_get_posts, which can affect all subsequent queries
    4. Test with theme or plugin conflict
      Temporarily switch to a default theme like Storefront and disable non-essential plugins to confirm whether this behavior is coming from a theme or third party widget interaction

    You can learn more about how WordPress queries work and how to reset them here: https://developer.wordpress.org/reference/functions/wp_reset_postdata/

    Since this involves how queries are handled across components, it may also require deeper inspection if it’s coming from theme or Elementor integration.

    Feel free to share your findings after testing, happy to continue digging into this with you.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.