课程: PHP for WordPress (2020)

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

The Loop in WordPress

The Loop in WordPress

- [Instructor] While you're not going to dive into too much WordPress code here it's important to understand the concept of The Loop, that's capital T capital L, in WordPress. This is the code used to display posts. The loop belongs in template files which you can take a look at in local by flywheel if you right click on your WordPress site, and then click reveal in finder, then click on WordPress, App, Public. Here are all your WordPress files. In wpcontent, themes, you'll find all of the themes installed on your WordPress site and the most recent one as far as the name of the year goes is going to be the active one. So 2020 is the active theme for our site. These are the template files that are going to drive your WordPress site and work with a set of built-in functions to help you display post content. The loop is primarily made up of template tags. You see one on the screen here called the_title. You'll notice on…

内容