if (have_posts()) :
// Loop através dos posts
while (have_posts()) :
// Carrega o post
the_post();
// Verifica se o post contém um vídeo incorporado
if (has_shortcode(get_the_content(), 'video')) :
// Exibe o vídeo
echo '
';
the_content();
echo '
';
else :
// Se não houver vídeo, exiba o conteúdo normalmente
the_content();
endif;
endwhile;
endif;