I have a problem here, I know it can be simple, but I have not solved it yet.
I have a slide running in a loop of PHP, in this slide there are "entities" that when the expiration day arrives they should be removed from slides , only the slides , ie they would not be displayed anymore.
I have tried unset()
but it removes all the products, since everyone has to come from the same query .