The loop is the core of WordPress.
It is what displays the content from your database on the front end of your site. The WordPress loop is basically a query that can be modified in lots of different ways. For example, (in English) we can ask it to:
- Show me the most five recent blog posts
- Show me 10 blog posts from the category ‘News’
- Display two blog posts with their excerpts and featured images and then show 5 more blog titles underneath
- Show me all the blog posts for the category ‘blog’ and display them as a list
The loop is incredibly powerful and flexible and is used all over your website.