I think the “initial” state being a shortcode is the root of your issue.
I’m making a few assumptions to what your setup looks like:
- You have the [a-z-listing] shortcode as your “default” state for the FacetWP settings on this page.
- FacetWP and AZ Listings are not integrated (I don’t believe they are officially).
Here is a breakdown of events (given the assumptions above):
- FacetWP does an initial load and executes do_shortcode somewhere in order to render [a-z-listing].
- Upon filtering something with FacetWP, the shortcode html is completely deleted from the DOM. This means that we cannot get it back unless we somehow re-render the default state (page refresh?).
- Unchecking the filter does not resolve back to the initial state because FacetWP does not execute do_shortcode again.
Here is an animated GIF of a-z listings being replaced by the Facetwp results template completely: https://imgur.com/a/mgrYrnm
While this may not be the answer you’re looking for, it may point you in the right direction. I would look into the following resources: