$teste_tp_slugs = ['company', 'search', 'customers'];
foreach ($teste_tp_slugs as $teste_tp_slug) {
$output = '';
$output .= '<section id="teste-site-home-' . $teste_tp_slug . '">';
$output .= '<div class="container">';
$output .= '<div class="row">';
$output .= get_template_part('template-parts/home/sections/content', 'company');
$output .= '</div>';
$output .= '</div>';
$output .= '</section>';
return $output;
}
Está exibindo assim, fora da ROW
O correto seria assim
ob_start();
, dá os echo e no final faz$output = ob_get_contents()
;