The Loop is at the core of WordPress's post rendering engine. With The Loop, WordPress formats each post to be displayed on the current page. If you want to customize the way posts are displayed in your WordPress theme, you'll need to come to terms with The Loop.
In this course, you'll learn how The Loop works in WordPress. You'll learn how to modify The Loop in your themes and plugins. You'll also see how to create a loop from scratch for the ultimate in customizability.
Do you want to learn WordPress development from start to finish? Check out our learning guide: Learn WordPress Development.
1.Introduction1 lesson, 00:55
1 lesson, 00:55
1.1Introduction00:55
1.1
Introduction
00:55
2.Introducing the Loop 2 lessons, 13:32
2 lessons, 13:32
2.1The Loop in Action07:23
2.1
The Loop in Action
07:23
2.2Elements of the Loop06:09
2.2
Elements of the Loop
06:09
3.Coding the Loop2 lessons, 17:13
2 lessons, 17:13
3.1Coding the Loop in Archive Pages10:32
3.1
Coding the Loop in Archive Pages
10:32
3.2Coding the Loop in Single Pages and Posts06:41
3.2
Coding the Loop in Single Pages and Posts
06:41
4.Modifying the Loop2 lessons, 18:04
2 lessons, 18:04
4.1Creating Custom Loops in Template Files10:41
4.1
Creating Custom Loops in Template Files
10:41
4.2Modifying the Loop Using pre_get_posts07:23
4.2
Modifying the Loop Using pre_get_posts
07:23
5.Writing a Custom Loop3 lessons, 19:09
3 lessons, 19:09
5.1Methods for Creating Custom Loops04:12
5.1
Methods for Creating Custom Loops
04:12
5.2Creating a Loop With get_pages and get_posts05:51
5.2
Creating a Loop With get_pages and get_posts
05:51
5.3Using WP_Query to Set Up a Custom Loop09:06
5.3
Using WP_Query to Set Up a Custom Loop
09:06
6.Conclusion1 lesson, 02:51
1 lesson, 02:51
6.1Conclusion02:51
6.1
Conclusion
02:51
Rachel McCollin is a WordPress developer who writes books, articles and tutorials about web design and development, with a focus on WordPress and on responsive and mobile development. She runs a web design agency in Birmingham, UK and has published three books on WordPress, including WordPress: Pushing the Limits, an advanced resource for WordPress developers. She's currently writing her fourth book.