Allow only one post with specific meta value
I want this condition to only be applied to one post, i.e. when the user declares a post as “featured”, and saves it, all the other ones (theoretically only the last one) that have this meta value checked, should be turned “off”. You might then try to save the one and only featured post ID … Read more