Fatal Error have_posts

I’m new here learning wordpress…. if anyone can help am i missing something?



  1. `if ( have_posts() ) :`

    `while ( have_posts() ) : the_post();`

    `// Your loop code`


    `else :`

    `_e( ‘Sorry, no posts were found.’, ‘textdomain’ );`



This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer