added if is_tax to metadata loop