Get the terms of a post

Solved I’ve solved it by myself. The WordPress function get_the_term_list() returns the terms of the post, but unfortunately they are in the reversed hierarchical order, so I had to turn them around. $id = get_the_ID(); $terms = get_the_term_list( $id , $taxonomy , ” , $randomstring ); $terms_array = explode( $randomstring , $terms ); $terms_string = … Read more

Custom Taxonomy – Dropdown

It’s easy if you want to use a different taxonomy. Just change the ‘category’ value below to whatever your taxonomy name is. <?php wp_dropdown_categories( array( ‘taxonomy’ => ‘category’, ) ); ?> For additional parameters, see the full list on the WordPress Codex.

How to set “manage categories” capabilities on a post type taxonomy but not on the general categories?

you can just define your own capabilities to use this taxonomie ‘manage_terms’ => ‘manage_terms_TAXONOMIE_NAME’, ‘edit_terms’ => ‘edit_terms_TAXONOMIE_NAME’, ‘delete_terms’ => ‘delete_terms_TAXONOMIE_NAME’, ‘assign_terms’ => ‘assign_terms_TAXONOMIE_NAME’, and after you choose wich capabilities you give to your users