Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #579
      jchamb
      Member

      For the life of me, I can’t figure out what I’m missing… I have a custom post type that I’m adding a Custom taxonomy too.. In the menu the taxonomy shows and I can manage them… but if i create/edit one of my custom posts the taxonomy isn’t there for me to select what it belongs to…

      This is my taxonomy code.

      add_filter(‘piklist_taxonomies’, ‘events_tax’);
      function events_tax($taxonomies)
      {
      $taxonomies[] = array(
      ‘post_type’ => ‘events’
      ,’name’ => ‘filter’
      ,’configuration’ => array(
      ‘hierarchical’ => true
      ,’labels’ => piklist(‘taxonomy_labels’, ‘Filter’)
      ,’show_ui’ => true
      ,’query_var’ => true
      ,’hide_meta_box’ => true
      ,’show_admin_column’ => true
      )
      );

      return $taxonomies;
      }

      and here’s my array for the custom post type

      $post_types[‘events’] = array(
      ‘labels’ => piklist(‘post_type_labels’, ‘Event’)
      ,’public’ => true
      ,’rewrite’ => array(
      ‘slug’ => ‘events’
      )
      ,’capability_type’ => ‘post’
      ,’supports’ => array(
      ‘title’
      ,’thumbnail’
      ,’excerpt’
      ,’editor’
      )
      ,’edit_columns’ => array(
      ‘title’ => __(‘Event’)
      )
      );

      i’m working in wordpress 3.5 and piklist 0.7.1
      any help would be appreciated.

    • #580
      Steve
      Keymaster

      @jchamb– You have ‘hide_meta_box’ => true when registering the Taxonomy.

      Just remove that line.

      Hiding the default WordPress meta box can be useful, if you want to display your taxonomy as a dropdown or radio buttons. Check out this tutorial.

    • #582
      jchamb
      Member

      Ahh, I knew it had to be something dumb I was missing. Guess I was staring at it far to long. Thanks

Viewing 2 reply threads
  • You must be logged in to reply to this topic.