Custom taxonomy not showing terms in post area

Seems like its creating some conflict. Can you try with this code ? add_action( ‘init’, ‘country_init’ ); function country_init() { $labels = array( ‘name’ => _x( ‘Countries’, ‘countries’ ), ‘singular_name’ => _x( ‘Country’, ‘countries’ ), ‘search_items’ => _x( ‘Search Countries’, ‘countries’ ), ‘popular_items’ => _x( ‘Popular Countries’, ‘countries’ ), ‘all_items’ => _x( ‘All Countries’, ‘countries’ … Read more

Proper way to update the slug of a taxonomy using register_taxonomy? [duplicate]

register_taxonomy triggers the action registered_taxonomy immediately after it’s registered, which gives you the arguments it was registered with. As long as the taxonomy key doesn’t change, you can hook that action, modify the arguments, then re-register it. function wpd_update_taxonomy_args( $taxonomy, $object_type, $args ){ if( ‘plugin_tax’ == $taxonomy ){ // remove this action so we don’t … Read more

Using custom taxonomies in a query

I looked at the source code for IssueM. I think the slug you are after is issuem_issue However, there are two more taxonomies it registers: issuem_issue_categories and issuem_issue_tags Edit Try changing your args to: $args = array( ‘post_type’ => ‘article’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘issuem_issue’, ‘field’ => ‘slug’, ‘terms’ => ‘issue-one’ ), ), … Read more

Return the most recently created custom taxonomy

Use get_terms to select that custom taxonomy, ordering by id DESC and returning only one record: $latest_term = get_terms( ‘issuem_issues’, array( ‘orderby’ => ‘id’, ‘order’ => ‘DESC’, ‘number’ => 1, ‘hide_empty’ => false ); This presumes that your WP DB is set up normally, so the highest ID number on the custom taxonomy terms will … Read more