function bitt_current_archive_term()

This function gets the current archive term on an archive page.

Useful in Advanced Queries in Oxygen.

function Code

 * 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;
Leave a Reply

Your email address will not be published. Required fields are marked *

    Table Of Contents

    Related Content

    © 2020-2024 Luxibay
    Please let us know what's on your mind. Have a question for us? Ask away.
    This field is for validation purposes and should be left unchanged.