Hi @nowton
Have you made sure that you even make it inside the if statement? Perhaps there’s something with it that you’ve overlooked so the conditions aren’t met.
Also, I don’t think you need to set orderby to meta_value_num for dates.. I think meta_value is quite enough especially if you have a format like say Y-m-d