WordPress.org

Ready to get started?Download WordPress

Forums

Prevent selecting a parentless category (1 post)

  1. samanime
    Member
    Posted 3 years ago #

    Is there a way to prevent a poster from selecting a category which doesn't have a parent.

    For example, if I have the following category structure:
    Cat A
    - Child A
    - Child B
    Cat B
    Cat C
    - Child C
    - Child D

    I'd only want to let them to select Child A, Child B, Child C, or Child D, not Cat A, Cat B, Cat C. I can do this when I want to save, but I was wondering if there was a way to change the output of the default category widget to reflect this restriction.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.