add slug beside name in Admin Category Checklists

ok since i didn’t have any response im posting the SOLUTION my self so it can be useful for others wanting to do the same: add_filter(‘wp_terms_checklist_args’, ‘display_custom_checklist’); function display_custom_checklist( $args ){ if ( $args[‘taxonomy’] == ‘portfolio-type’ ) $args[‘walker’] = new my_custom_walk; return $args; } class my_custom_walk extends Walker { var $tree_type=”category”; var $db_fields = array … Read more

WordPress set taxonomy on post?

wp_set_post_terms() requires you to provide term id not the term name or slug when it is a hierarchical taxonomy. From the codex: For hierarchical terms (such as categories), you must always pass the id rather than the term name to avoid confusion where there may be another child with the same name. Try the code … Read more

Wp Query with multiple custom tag(taxonomy) by get the terms

Try this.. $terms = get_the_terms( $post->ID, ‘tag_blogcom’ ); foreach ($terms as $term) { $slugs[] = $term->slug; } $query = new WP_Query( array( ‘post_type’ => ‘blogcom’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘tag_blogcom’, ‘field’ => ‘slug’, ‘terms’ => $slugs, ), ), ‘posts_per_page’ => 10 ) ); Check the Taxonomy Parameters at WordPress Codex.

Handling Multi-level custom taxonomy hierarchy

You’ll probably have to run a cycle using get_terms() paired with the ‘parent’ attribute. $args = array( ‘parent’ => 0 ); $parents = get_terms( array( ‘custom-tax’ ), $args ); foreach ( $parents as $parent ) { echo $parent->name; $args[‘parent’] = $parent->term_id; if ( $children = get_terms( array( ‘custom-tax’ ), $args ) ) { foreach ( … Read more

List Posts By Custom Taxonomy

When you change URLs and post types/taxonomies, you need to flush and regenerate permalinks/rewrite rules to make the changes take effect. If you don’t, you’ll get 404 errors. You can do this by visiting the permalinks settings page. Your term will then be viewable at: /genre/fiction And take the template taxonomy-genre.php or taxonomy.php or archive.php … Read more