function javo_get_archive_current_position($term_id, $taxonomy) { $javo_this_term = get_term($term_id, $taxonomy); if (is_wp_error($javo_this_term)) { return false; } $javo_this_return = javo_get_archive_current_position($javo_this_term->parent, $taxonomy); return javo_array_extend($javo_this_return, $javo_this_term->term_id); }
?> <?php printf('%s <small>%s</small>', $javo_this_terms_object->name, __('Archive', 'javo_fr')); ?> <i> <a href="<?php echo home_url(); ?> "><?php _e('HOME', 'javo_fr'); ?> </a> <?php if (isset($javo_this_terms_object->taxonomy)) { $javo_archive_current = javo_get_archive_current_position($javo_this_term, $javo_this_terms_object->taxonomy); foreach ($javo_archive_current as $term_id) { $term = get_term($term_id, $javo_this_terms_object->taxonomy); printf('> <a href="%s">%s</a> ', get_term_link($term), $term->name); } } ?> </i> <?php } ?> </h1><!-- /.page-header --> <?php if ($javo_tso_archive->get('sub_cat_enable', 'on') == 'on') { ?>