function bitt_current_archive_term()
This function gets the current archive term on an archive page.
Useful in Advanced Queries in Oxygen.
<?php
/**
* Get the current term
*
* @return string $current_terms - the current term
*/
if (!function_exists('bitt_current_archive_term')) {
function bitt_current_archive_term()
{
$current_terms = get_queried_object()->term_id;
return $current_terms;
}
}
?>