Meu código apresenta informação de que há erro fatal.
INFORMAÇÃO: Fatal error : Uncaught Error: Call to undefined function have_post() in C:\xampp\htdocs\alura-intercambios\wp-content\themes\alura-intercambios\index.php:4 Stack trace: #0 C:\xampp\htdocs\alura-intercambios\wp-includes\template-loader.php(106): include() #1 C:\xampp\htdocs\alura-intercambios\wp-blog-header.php(19): require_once('C:\xampp\htdocs...') #2 C:\xampp\htdocs\alura-intercambios\index.php(17): require('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\alura-intercambios\wp-content\themes\alura-intercambios\index.php on line 4
CÓDIGO: <?php require_once 'header.php';
if(have_post()): while (have_post()): the_post(); the_post_thumbnail(); the_title(); the_content(); endwhile; endif;require_once 'footer.php';