Display posts by tag August 17, 2022 by Tarik Billa Did you try without $query-> in front of get_template_part() ?