Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
You might like to follow this post as well as it appears to be essentially the same… Display the Terms from a Custom Taxonomy Assigned to a Post(inside the loop) in Hierarchial Order
You might like to follow this post as well as it appears to be essentially the same… Display the Terms from a Custom Taxonomy Assigned to a Post(inside the loop) in Hierarchial Order
Get url.com/post_type/taxonomy/term work!
Same term from custom taxonomy in two different custom post types?
I understand your problem and had to work around it as well: wp_insert_term() doesn’t handle parent/children connections. You can check this with the following: $tax = ‘category’; $terms = get_terms( array( $tax ) ); $children_to_update = array(); foreach ( $terms as $term ) { $checked_term = get_term_by( ‘name’, $term, $tax ); // … retrieve parent … Read more
I don’t know if this is the optimal, it’s one suggestion. For me I’d created the qa post type as hierachical. Then for every page in the book I’d created a child qa post using menu_order field to handle the page number. This child has a 3rd level child for problems. Hooking intro pre_get_posts for … Read more
We could manipulate the global $menu and $submenu inside the admin_menu hook. But it’s easier to let Mike Schinkel’s WP Admin Menu Classes take care of it. require_once(‘inc/wp-admin-menu-classes.php’); add_action( ‘admin_menu’, function() { $plugin_page=”wpse_114343″; add_menu_page( ‘Console’, ‘Console’, ‘edit_pages’, $plugin_page, function() {}, “http://cdn.sstatic.net/stackexchange/img/favicon.ico”, 6 ); // Move the CPT Movie and remove original $cpt = “edit.php?post_type=movie”; copy_admin_menu_item( … Read more
Hey @neoian – what you need is a 2 step process. Loop the categories / terms Then inside each category / term, query the posts. . $terms = get_terms(“some_taxonomy”); $count = count($terms); if ( $count > 0 ){ foreach ( $terms as $term ) { $term_link = get_term_link( $term, ‘some_taxonomy’ ); echo ‘<h4 class=”termTitle”><a href=”‘.$term_link.'”>’ … Read more
You don’t really need a pre-built plugin for this or you may create your own slim plugin. This is how I’d tackle the problem: You need the app to remember an already selected filter and pass all filter values every time you change your selection. Therefore your safest bet is to build a form with … Read more
No, this isn’t possible per default. Your best bet is the posts_clauses filter. The answers on the site provide plenty examples for that filter. You might also want to look into using the posts_search filter.
How can I highlight a top level dashboard menu item created for a custom taxonomy?