Add file attachments/meta to a custom Taxonomy

this tutorial will definitly solve your problem http://en.bainternet.info/wordpress-taxonomies-extra-fields-the-easy-way/ Yes i have used it to add feature images to the custom taxonomy terms.It depends how you registering the custom post .If you have registered the custom post as plugin from plugin directory , then you need to paste the downloaded folder i.e Tax-meta-class in directory of … Read more

Using custom taxonomy when registering a new custom post type

What you have should work in principle. Note that taxonomies argument needs existing taxonomy, that is one that is already registered at the time you are registering CPT. If the timing is problematic to get right during registration, you could also use register_taxonomy_for_object_type() to create association between the two separately from registration process.

list custom taxonomy with count

<?php $taxonomy = ‘judges’; $tax_terms = get_terms($taxonomy); ?> <ul> <?php foreach ($tax_terms as $tax_term) { echo ‘<li>’ . ‘<a href=”‘ . esc_attr(get_term_link($tax_term, $taxonomy)) . ‘” title=”‘ . sprintf( __( “View all shows for %s” ), $tax_term->name ) . ‘” ‘ . ‘>’ . $tax_term->name . ‘(‘ . $tax_term->count . ‘)</a> </li>’; } ?> </ul> Try … Read more

Double slash in the_terms URL

First Assumption: That an extra slash was being added for some reason To see what was going on, I wanted to see what was going on in the array. When I print_r() the array I get the following: Array ( [10] => stdClass Object ( [term_id] => 10 [name] => Mozilla [slug] => mozilla [term_group] … Read more

Sort and paginate custom post taxonomies alphabetically

As I stated in comments, you can either use usort() to sort the returned array of terms, or you can just use wp_get_post_terms() which is already sorted by default by name in ascending order $terms = wp_get_post_terms( get_the_ID(), ‘brand’ ); var_dump( $terms ); EDIT Here is an example with usort() and get_the_terms() $terms = get_the_terms( … Read more