I'm trying to find a way of disabling the selection of the parent category within Wordpress 3.5.1 (post editor screen) only when that parent category contains child categories.
- Category 1 (no children, allow users to post, keep selection option)
- Galleries (parent category WITH children, remove selection option to stop users posting)
- User 1 (child category, allow user to post, keep selection option)
A jQuery solution to disabling the section of all parent categories (regardless of having child categories or not) can be found here: