get_template_part()で引数を渡したい時
set_query_var( 'id', $my_vars->id );
get_template_part( 'content', 'part' );
// 受け取り側
$id = get_query_var('id');
参考
get_template_partで呼び出したテンプレートに値を渡す方法 | ウーシアブログ
【WordPress】get_template_partに変数を渡したいときにどうするか | tabosque.com