Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Conflict with WP Grid Builder Facets with GB 2.0 Query

  • Hi GenerateBlocks team,

    I’m experiencing a puzzling conflict with GenerateBlocks Pro 2.0 and WP Grid Builder. Specifically, filters/facets stop working whenever I add more than one dynamic data field within a single Query Loop item.

    Here’s a quick rundown of my setup and the issue:

    Plugins:

    – GenerateBlocks Pro: 2.0
    – WP Grid Builder: 2.1.6

    Desired Outcome:

    I have a custom blog page (not an archive page) using GenerateBlocks’ Query (v2.0) to display posts.

    WP Grid Builder adds facets (checkbox filters, infinite scroll, etc.) so that visitors can filter posts dynamically.

    The Problem:

    When I have only one dynamic block (e.g., just the Post Title or just the Post Excerpt) in each loop item, WP Grid Builder’s facets work fine—filters adjust the post list as expected.

    As soon as I add a second dynamic element (for example, a separate dynamic image block, or a dynamic text block with Post Meta), the filter requests still send AJAX calls, but
    – the displayed results don’t update (for filters)
    – for the infinity scroll loading of more posts, the same 10 posts load below the first 10.

    No apparent JavaScript or PHP errors in the console/logs. WP Grid Builder facets just keep returning the same post set.

    What I’ve Tried:

    – Assigning unique .wpgb-content-XX classes to the Query Loop container for WP Grid Builder.
    – Changing the content inside dynamic blocks (Post Title, Post Excerpt, Post Meta).
    – Verifying WP Grid Builder’s AJAX calls happen and return data (they do).
    – Using the older GenerateBlocks blocks (pre–2.0) on another page where they’re already set up, which works fine with multiple dynamic blocks.
    – I tried the script recommended here: https://jonathanjernigan.com/how-to-use-wp-grid-builder-to-filter-generateblocks-query-loop/ but with no success

    Key Observation:

    If there’s only one dynamic element in the loop item, all WP Grid Builder filters (facets) work.

    The moment I add two or more dynamic elements, the filters break (the same post set remains, or infinite scroll repeats).

    Additional Notes:

    I don’t see any relevant errors in the browser console.

    The AJAX requests do return a valid response—just that the displayed posts never update when multiple dynamic blocks exist.

    This was not an issue with older versions of GenerateBlocks blocks in my setup.

    Question:Is there a known conflict between GenerateBlocks 2.0’s dynamic data and WP Grid Builder’s filtering? Is there a recommended workaround for using multiple dynamic fields in the same Query Loop item without breaking WP Grid Builder facets?

    Thank you in advance for any help or guidance! If you need additional code snippets or logs, let me know.

  • Hi there,

    Have you contacted WP Grid Builder regarding this issue? Since we don’t provide an official integration with their plugin, any compatibility issues should be addressed by them. This is the first reported case of this issue, making it more challenging to troubleshoot when third-party plugins are involved.

  • Hi Alvin,

    I haven’t yet, and I’m a bit worried they would be responding the same thing… The reason I posted here first is because the issue is clearly triggered by the update from GB 1.7 to GB 2.0, and I was hoping you would have more insights into the internal changes that might cause this issue than they would be :/

  • Sorry, we can’t debug for a 3rd party plugin.

    However, other filter plugins like Search and Filter offer official support for GB 2.0:
    https://searchandfilter.com/generate-blocks-v2-0-integration/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.