Tagged: taxonomy
- This topic has 2 replies, 2 voices, and was last updated 9 years, 1 month ago by
jchamb.
-
AuthorPosts
-
-
December 21, 2012 at 4:56 pm #579
jchambMemberFor 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. -
December 21, 2012 at 10:38 pm #580
-
December 26, 2012 at 10:03 am #582
jchambMemberAhh, I knew it had to be something dumb I was missing. Guess I was staring at it far to long. Thanks
-
-
AuthorPosts
- You must be logged in to reply to this topic.