I have a custom post type, which creates a slide. I can select if I want to have an image or a video, with two different buttons. If I select both of them it will still save, but the background will show up. How do I make it impossible to save/publish if both an image and a video is selected?
Is there any easy way to prevent this?