WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
[resolved] Require users select a category before publishing a Post? (4 posts)

  1. Joseneas
    Member
    Posted 1 year ago #

    Hi,

    Is there any way to require the user to select a category before publishing a post? (A Custom Post Type and a custom category and also created with Types Plugin).

    When the user (Author) publish a post, if he does not select a category, will see an error message: "You must select a category before publishing a post".

    Any hook that I can add in the functions of the theme?

    http://wordpress.org/extend/plugins/types/

  2. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Hi enoquenroll,

    It will be hard to achieve. Because WordPress has designed the taxonomies are non-mandatory.

    [ Signature moderated. ]

  3. Joseneas
    Member
    Posted 1 year ago #

    Hi mbigul,

    I found a plugin in WordPress.org.

    You can require that an author select a Category before publishing a post (Or Custom Post Type) using the plugin 'force-post-category-selection'.

    And the interesting thing is that he work even past the code of the plugin in the functions of theme.

    The link: http://wordpress.org/extend/plugins/force-post-category-selection

    Thanks.

  4. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Hi enoquenroll,

    Thank you. Nice to hear that.

    [ Signature moderated. ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic