Same taxonomy for different object types

Those are different object types that belong to different tables and hence can have same primary key ID. –> Even though these are different types, all are being stored in one table i.e. wp_posts with post_type = the different types. Check the table structure for clarity. So there won’t be any same ID conflict. if … Read more

Get_terms stopped working after WP 4.2

I’ve got this fixed now. Managed to talk with my old developer and he added this: $termsById = array(); foreach ($terms as $t) { $termsById[$t->term_id] = $t; } I had to add this new variable where $terms was previously used on line 14. Thanks for your help everyone, I appreciate the effort.

How to restrict users and admin from creating new taxonomy terms?

This check: <?php if ( current_user_can( $taxonomy->cap->edit_terms ) ) : ?> needs to be satisfied to display the “Add New Category” link. You can set the capabilities for your schedule_day_taxonomy taxonomy, when you register it. Example Only users with the edit_schedule_day_taxonomy capability can edit the taxonomy: add_action( ‘init’, ‘schedule_day_tax_func’ ); function schedule_day_tax_func() { register_taxonomy( ‘schedule_day_taxonomy’, … Read more