What is WordPress loop?
The WordPress Loop is the code that WordPress uses to display content on your website. Take your index.php template, for example. In a basic blogging theme, this template is generally used to display several posts or post excerpts on your home page. The index.php template uses the WordPress Loop in order to do this.