• Hello, I’ve used the plugin successfully before but run into issue with my new template.
    Basically the child terms refuse to display in the correct order on the front end. Works just fine in the admin 🙁

    Here is a link:dev.horizonq8.com – under Location, and the code in functions.php

    $taxonomy_terms_child = get_term_children( $term->term_id, $taxonomy_name );
    
                if(!empty($taxonomy_terms_child) && !is_wp_error($taxonomy_terms_child)){
                    foreach($taxonomy_terms_child as $child){
                        $term_child = get_term_by('id', $child, $taxonomy_name);
    
                        if($searched_term == $term_child->slug)
                         {
                            echo '<option value="'.$term_child->slug.'" selected="selected">-'.$term_child->name.'</option>';
                        }else {
                            echo '<option value="'.$term_child->slug.'">-'.$term_child->name.'</option>';
    
                        }
                    }
                }

    Would appreciate any help. Cheers:)

    http://wordpress.org/plugins/taxonomy-terms-order/

  • The topic ‘Trouble with child terms’ is closed to new replies.