Dropdowns with dynamic content inside looper

I have an issue that seems to be related to the use of the “Dropdown” element within a Looper that can be filtered using FacetWP.

The layout is:

Page (not archive template)
Section – this is the Looper Provider
Row – this contains the Facets
Row
Columns treated like “Cards” – these are the Looper Consumer
“Dropdown” Element with Dynamic Content referencing an ACF from the post
Several “Button” elements, each with Dynamic Content referencing an ACF from the post and Conditionals

In case it matters, the Looper Provider uses a query string (post_type=providers&facetwp=true&post_status=publish&posts_per_page=-1&orderby=menu_order&order=ASC&meta_key=provider_role&meta_value=hcp).

When the page initially loads, this all works fine.

However, when a visitor uses the Facet to filter the looper results, the dynamic content in that Dropdown element doesn’t work properly. Rather than showing the content from its own post, it seems to show content from the post that appears before it.

AI tells me that:
“Pro doesn’t render the Dropdown content inside the card. It moves every dropdown panel to the end of the page, as direct children of .x-site, outside the facetwp-template container. Each toggle finds its panel by an ID based on the looper position (e38-e28-0-dropdown, e38-e28-1-dropdown, …). When a facet runs, FacetWP’s AJAX only replaces what’s inside facetwp-template. The toggles are re-rendered with IDs for their new positions, but the panels at the bottom of the page are still the ones from the unfiltered load.”

Is this accurate? And if so, do you have any advice for forcing Pro to render the Dropdown as a child of the Column so that the ID stay attached to the right Consumer Record, even when they are re-rendered through a Facet?

Hello Danni,

Thanks for reaching out! The explanation you were given is accurate, and there is a built-in setting that addresses it. Please review the steps below.

Troubleshooting

  1. Enable the Dropdown’s Inline option – By default, Pro moves each Dropdown panel to the end of the page (as direct children of .x-site) so it is not clipped by parent containers. Inside a FacetWP template this separates the panels from their toggles, which is the behaviour you described. Open the Dropdown element in your Looper Consumer column, go to Dropdown > Setup, and enable Inline. The panel will then render directly after its toggle, inside the card, so FacetWP replaces the toggle and its panel together on each refresh.

  1. Adjust positioning if needed – Inline panels sit inside the card, so a parent with overflow: hidden can clip them. If that happens, remove the overflow restriction on the column or card, or enable Inline Fixed (shown once Inline is on) to position the panel with position: fixed.

  2. Retest with a clean cache – Clear any page or server cache and FacetWP’s cache, reload the page, apply several facet combinations, and confirm each Dropdown shows the ACF content of its own post.

Kindly let us know how it goes.