Hi @dlukefinch,
I’m sorry for the delay here. Unfortunately there isn’t a condition you can add that will satisfy that “No advisories” panel based on the Looper itself. As long as advisories exist (regardless of their dates) the provider will not be considered empty.
There are two ways I can think of to solve this. The first option would be creating a custom provider. You would need to make a PHP function to retrieve the ACF fields and filter out items that don’t satisfy the date check. Doing this gives you full control over the data and because it would only return active advisories, you could use the “empty” condition of the Looper Provider. Doing this is a bit more involved and not something I can help with in support since it gets into custom development.
Another idea would be solving it with a little javascript. Try adding `active-advisory` to the same element that has the date condition. If any advisories are on the page, the body will get a `has-advisory` class.
jQuery(function(){
if (document.querySelector('.active-advisory')) {
document.body.classList.add('has-advisory')
}
})
Then you can use the class to hide the no advisories message with some Element CSS on that element.
body:not(.has-advisory) $el {
display: none;
}
This CSS/JS option is definitely more of a workaround to the custom looper, but it would be easier to implement.