Custom Taxonomies not retaining hierarchy while importing from one site to another

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

Grouping of CPTs and taxonomies into menu groups in admin

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

List of Posts and Categories

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