Why is my working Custom Taxonomy not in get_taxonomies array?

The Invalid Taxonomy error will be raised by the function get_terms(). You’re registring your taxonomy on the init action hook. Therefore you have to call your get_terms() function on the same or a later hook. Try this snippet. It should display all term names of your taxonomy, regardless if the term is empty. add_action(‘init’, ‘wpse29164_registerTaxonomy’); … Read more

Hide the term description on the term edit page, for a given taxonomy

You could target the edit form for the post_tag taxonomy, through the post_tag_edit_form hook: /** * Hide the term description in the post_tag edit form */ add_action( “post_tag_edit_form”, function( $tag, $taxonomy ) { ?><style>.term-description-wrap{display:none;}</style><?php }, 10, 2 ); Here you can also target an individual tag. If you need something similar for other taxonomies, you … Read more

How to completely disable a taxonomy archive on the frontend?

s_ha_dum’s answer didn’t work for me, but this did: /** * Completely disable term archives for this taxonomy. * @param string $taxonomy WordPress taxnomy name */ function kill_taxonomy_archive($taxonomy){ add_action(‘pre_get_posts’, function($qry) { if (is_admin()) return; if (is_tax($taxonomy)){ $qry->set_404(); } } ); }

How to Add Custom Fields to Custom Taxonomies in WordPress CLEANLY

Option 2 is the cleanest method – which I’ve also used a number of times. Unfortunately, there is no default term_metadata table in WordPress yet. This post also covers the same approach, http://shibashake.com/wordpress-theme/add-term-or-taxonomy-meta-data And of course, there’s a plugin for that too 🙂 http://wordpress.org/extend/plugins/taxonomy-metadata/

Assign posts to taxonomy terms instead of the taxonomy terms to posts?

I think the “Featured Post Manager” plugin will be closer to what you’re looking for: http://wordpress.org/extend/plugins/featured-post-manager/screenshots/ The language used is somewhat confusing, and it may not work for custom taxonomies (directories) or custom types (people), BUT you can probably take the code and customize it to work for those classes of things instead, as well … Read more

Custom Taxonomy’s Label to change the text appearing in Appearance > Menu

I’m assuming that you don’t want to set different labels for these taxonomies in the first place – you didn’t specifically mention that you can’t, but I’m assuming the thought occurred to you. Just in case it didn’t, from your code: register_taxonomy(“product_cat”, “product”, array( “labels” => array( “name” => “Categories”, Changing “Categories” to “Product Categories” … Read more