We're offering a free six-month trial of Hookline: Atmos - a plugin that adds a Gravity Forms element for Oxygen Builder. Get it today!

function bitt_current_archive_term()

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

Useful in Advanced Queries in Oxygen.

function Code

<?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;
    }
}
?>

Table Of Contents

Related Content

© 2020-2023 Luxibay
Name(Required)
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.