문제

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