public static function getOneByTerm($taxonomy, $terms, $field = 'slug', $args = array(), $load_terms = true)
    {
        $args['numberposts'] = 1;
        $result = static::getByTerm($taxonomy, $terms, $field, $args, $load_terms);
        return (count($result)) ? current($result) : null;
    }
public static function getOneByTerm($taxonomy, $terms, $field = 'slug', $args = array(), $load_terms = true)
    {
        $args['numberposts'] = 1;
        $result = static::getByTerm($taxonomy, $terms, $field, $args, $load_terms);
        return (count($result)) ? current($result) : null;
    }
public static function getOneByTerm ( $ taxonomy , $ terms , $ field = 'slug' , $ args = array ( ) , $ load_terms = true ) { $ args [ 'numberposts' ] = 1 ; $ result = static :: getByTerm ( $ taxonomy , $ terms , $ field , $ args , $ load_terms ) ; return ( count ( $ result ) ) ? current ( $ result ) : null ; }
Get one by a taxonomy and term
@param string $taxonomy
@param mixed $terms
@param string $field
@param array $args
@param bool $load_terms
@return object
Get one by a taxonomy and term