Categorize wordpress tags

finally found plugin to achieve this using plugins below http://wordpress.org/extend/plugins/tag-groups/ http://wordpress.org/extend/plugins/xili-tidy-tags/ << complex one hope help someone htat need to groups the tags, catgeory or taxonomy

Taxonomy list names with lowercase

What you are doing seems odd. You are creating and retrieving an HTML string only to strip out the HTML. Try this: $terms = get_the_terms( $post->ID, ‘genre’ ); // var_dump($terms); $tnames = array(); if (!is_wp_error($terms) && !empty($terms)) { foreach ($terms as $t) { $tnames[] = strtolower($t->name); } $genre = implode(‘, ‘,$tnames); } // var_dump($terms); You … Read more

Return Taxonomy Name for Each Term

$term->taxonomy is the taxonomy name for each term, $term->term_taxonomy_id the – wait for it! – taxonomy ID. To get the display names use get_taxonomy(): $terms = get_terms( array( ‘category’, ‘post_tag’ ) ); foreach ( $terms as $term ) { $tax_name = esc_html( get_taxonomy( $term->taxonomy )->labels->name ); echo “$term->name ($tax_name)<br>”; }

Get Link to Feed On Term or Taxonomy

For terms and taxonomies use get_term_feed_link: “Returns a link to the feed for all posts in a given term. A specific feed can be requested or left blank to get the default feed.” See also get_tag_feed_link and get_category_feed_link. For post types see get_post_type_archive_feed_link. These functions are located in in wp-includes/link-template.php.

input radio ‘checked’ saves, but select option ‘selected’ doesn’t

It was a long way around to get there but you basically have a markup error. You didn’t name your select. You should have: <select id=”select-taxonomy” name=”<?php echo $name ?>”> // <– here is the change <?php foreach($terms as $term) { $id = $taxonomy.’-‘.$term->term_id; $value= (is_taxonomy_hierarchical($taxonomy) ? “value=”{$term->term_id}”” : “value=”{$term->term_slug}””); echo “<option id=’in-$id’ “. selected($current,$term->term_id,false) … Read more

Is there a query string for edit.php to show all posts that have no custom taxonomy terms?

Use a tax_query with a NOT IN operator. $args = array( ‘post_type’ => ‘post’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘sms_premium_posts’, ‘field’ => ‘slug’, ‘terms’ => ‘Premium’, ‘operator’ => ‘NOT IN’ ) ) ); $query = new WP_Query( $args ); Now, to make that work on the post edit page via a $_GET string something … Read more