Easy digital downloads extra post type / taxonomy

Hi,

I got question.

I tried to add extra post type / taxonomy in Easy digital downloads plugin, but I dont know if I did it correctly.

First I created in my theme folder extra taxonomy files since my theme supports edd, screenshot: http://i.imgur.com/3zgIeQf.png files I added tempo and artist,

after that I added in my child theme folder/functions.php I copy pasted code from EDD post-types.php for category and renamed it to tempo and another same code and renamed it to artist. So I got 2 new menu items in EDD: screenshot: http://i.imgur.com/WxfOtXR.png

New code looks like this, same as category and tag, I just added 2 more times in child theme functions.php and renamed it to tempo and artist.

/** Tempo */
$tempo_labels = array(
‘name’ => sprintf( _x( ‘%s Tempo’, ‘taxonomy general name’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
‘singular_name’ => sprintf( _x( ‘%s Tempo’, ‘taxonomy singular name’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
‘search_items’ => sprintf( __( ‘Search %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
‘all_items’ => sprintf( __( ‘All %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
‘parent_item’ => sprintf( __( ‘Parent %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
‘parent_item_colon’ => sprintf( __( ‘Parent %s Tempo:’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
‘edit_item’ => sprintf( __( ‘Edit %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
‘update_item’ => sprintf( __( ‘Update %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
‘add_new_item’ => sprintf( __( ‘Add New %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
‘new_item_name’ => sprintf( __( ‘New %s Tempo Name’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
‘menu_name’ => __( ‘Tempo’, ‘easy-digital-downloads’ ),
‘choose_from_most_used’ => sprintf( __( ‘Choose from most used %s Tempo’, ‘easy-digital-downloads’ ), edd_get_label_singular() ),
);

Is this they way to do it or I need to do something else/different? Couldn’t find other way to do extra type in edd menu. Do I need to add anything in database or? I noticed that if I go on some of these new taxonomy links it shows me all products instead just one connected to it?

Thanks, Regards

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.