I created a Post Type called Courses, then I created a custom field of type switch and attached it to the course post, my goal is to be able to enable or disable a course, until now it is working normally.
Then I created a second post type called Classes, created a custom field of post type and advanced selection subtype, attached it to the classes post and all the courses are showing.
My question is how do I display only courses that have the switch field enabled, that is, I don't want disabled courses to appear.
How do I do this configuration?
- https://ibb.co/42FWh12
- https://ibb.co/26VhBrV
- https://ibb.co/3d0dJmQ
- https://ibb.co/0DLjy2Q
- https://ibb.co/gZ72mPp