Customizing the wordpress tag-cloud output

This is how the links are created in wp_generate_tag_cloud (wp-includes/category-template.php) foreach ( $tags as $key => $tag ) { $count = $counts[ $key ]; $real_count = $real_counts[ $key ]; $tag_link = ‘#’ != $tag->link ? esc_url( $tag->link ) : ‘#’; $tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key; $tag_name = $tags[ $key … Read more

wp_set_object_terms timing out?

Dealing with terms is known to be very heavy operation. The common tweak recommended is to use wp_defer_term_counting() to temporarily disable updating of terms count (which is stored persistently in database and so must be updated when you change terms).

Checkboxed term search

I built something similar for a client not too long ago. I believe your question is if it is possible — I can definitely say yes there. How would you go about it? Well, as I don’t have the code handy, I’ll give you a brief run-down of the steps I went about. I made … Read more

how to list parent terms only

get_terms(‘apptypes’,’orderby=id&parent=0′); parent argument is used to get direct children of this term (only terms whose explicit parent is this value). If 0 is passed, only top-level terms are returned. Default is an empty string. See Codex.

Unsetting post_tag taxonomy breaks term description for other taxonomies

Try using this function to avoid your problem: function sld_unregister_taxonomy_from_object_type($taxonomy, $object_type) { global $wp_taxonomies; if ( !isset($wp_taxonomies[$taxonomy]) || !get_post_type_object($object_type) ) return false; foreach (array_keys($wp_taxonomies[$taxonomy]->object_type) as $array_key) { if ($wp_taxonomies[$taxonomy]->object_type[$array_key] == $array_key) { unset ($wp_taxonomies[$taxonomy]->object_type[$array_key]); return true; } } return false; } e.x.: function mwm_unregister_taxonomy(){ sld_unregister_taxonomy_from_object_type( ‘post_tag’, ‘post’ ); } add_action( ‘init’, ‘mwm_unregister_taxonomy’);