<?php
// ulr: http://165.227.91.177/index.php/recipes/
// template: archive.php
$taxonomy_name = get_queried_object()->name;
$url_taxonomy = get_queried_object()->slug;
echo '<!-- ARCHIVE DEFAULT.PHP -->' ;
// get current category taxonomy name and slug
// echo 'CATEGORY TAXONOMY NAME: ' . get_queried_object()->name . '<br>' ;
// echo 'CATEGORY TAXONOMY SLUG: ' . get_queried_object()->slug. '<br>' ;
$args = array(
'posts_per_page' => -1,
'post_type' => 'recipesindex',
'tax_query' => array(
array(
'taxonomy' => 'recipes',
'field' => 'slug',
'terms' => $url_taxonomy,
)
)
);
$loop = new WP_Query($args);
?>
<div id="recipes_breadcrumbs_index" class="text-center">
<a href="<?php echo site_url(); ?>/index.php/recipes/">RECIPES</a> > <?php echo $taxonomy_name ; ?>
</div>