I have created a custom taxonomy and it works great, but i can't find a way to make it required in the dashboard.. Is there any way ?

This is the code of the taxonomy :

  function create_extra_cat_guidlines() {
       register_taxonomy(
      'cat',
      'pr_guidelines',
       array(
        'label' => __( 'Category' ),
        'rewrite' => array( 'slug' => 'cat' ),
        'hierarchical' => true
      )
      );
  }

Thanks in advance !

有帮助吗?

解决方案

After a long search with nog answers i decided to use a plugin: http://wordpress.org/plugins/force-post-category-selection/installation/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top