Creating conditional to display taxonomy term meta

I ended up adding an additional taxonomy meta class I was then able to use the following to get my phone number: <?php //Get the correct taxonomy ID by slug $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) ); //Get Taxonomy Meta $saved_data = get_tax_meta($term->term_id,’loc_phone’); ?> <?php if( $saved_data != “” ) { … Read more

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