Can I add a Category Metabox to attachment?

I am using register_taxonomy_for_object_type() to add the Category taxonomy field to Media uploads (attachments). I’m using this code to do so: add_action(‘init’, ‘reg_tax’); function reg_tax() { register_taxonomy_for_object_type(‘category’, ‘attachment’); } This works and adds a simple text field for Category to the Media page when viewing an image. What I really want is to make it … Read more

How to get taxonomy term of the current page and populate queries in the template

I’ve been stumbling around trying to figure out how to get a specific taxonomy term of the current page so that I can subsequently populate queries on the page for other post types that share the same term. Basically: Page 1 has taxonomy term – education policy page.php has four parts: standard loop that outputs … Read more

The Difference Between Hierarchical and Non-Hierarchical Taxonomies?

The question is “What is the Difference Between Hierarchical and Non-Hierarchical Taxonomies?” This question really stumped me at first so I figured it would be a good idea to show the difference to others surfing the site looking for the distinction. Specifically the question is referring to the hierarchical argument passed to the register_taxonomy() function. … Read more

Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?

The question is “How do I add one or more fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?” This question was asked on the wp-hackers list August 1st 2010 and I offered a solution later that day. The original asker discussed the issue again today (Aug 21) which reminded … Read more