- Overview
- Transcript
1.1 Introduction
In this lesson, I’ll give you an outline of the course. I’ll show you how to code The Loop in your themes and plugins so you can have full control over how posts are displayed.
Related Links
1.Introduction1 lesson, 00:55
1.1Introduction00:55
2.Introducing the Loop 2 lessons, 13:32
2.1The Loop in Action07:23
2.2Elements of the Loop06:09
3.Coding the Loop2 lessons, 17:13
3.1Coding the Loop in Archive Pages10:32
3.2Coding the Loop in Single Pages and Posts06:41
4.Modifying the Loop2 lessons, 18:04
4.1Creating Custom Loops in Template Files10:41
4.2Modifying the Loop Using pre_get_posts07:23
5.Writing a Custom Loop3 lessons, 19:09
5.1Methods for Creating Custom Loops04:12
5.2Creating a Loop With get_pages and get_posts05:51
5.3Using WP_Query to Set Up a Custom Loop09:06
6.Conclusion1 lesson, 02:51
6.1Conclusion02:51
1.1 Introduction
Hello, and welcome to this Tuts Plus course on working with the WordPress Loop. My name's Rachel McCaullin, and I'm going to show you how to use the loop in your template files to output content. So first I'll show you the standard loop which works here on the homepage on our site and on static pages, and on the block page as well. And then I'll show you how to create some custom loops. So for example, I'll show you how to create an archive loop which will work on the blog page and also on the tag archive page. I'll show you how to create a custom loop for single posts on pages which is working here. And then I'll show you how to modify the loop and tweak it using an action hook in WordPress. Finally, I'll show you some methods for creating completely bespoke loops and adding those outside the main loop in your file. So here there's a latest list of posts. Watch this course and find out how to do all those things.