我是彪彪,喜歡到處走走吃美食,看看風景拍拍照,用文字和照片記錄走過的足跡。旅途中,從一人到兩人,再從兩人到三人,每個階段都有不同的生活記錄,每篇文章都能回味過往。但我也常常喜歡懶廢在家,我的生活跟多數人沒有不同,只是想用文章記錄生活並與你分享。( 更多關於我 )
What is The WordPress Loop?
The Loop is PHP code used by WordPress to display posts. Using The Loop, WordPress processes each post to be displayed on the current page, and formats it according to how it matches specified criteria within The Loop tags. Any HTML or PHP code in the Loop will be processed on each post.
When WordPress documentation says “This tag must be within The Loop”, such as for specific Template Tag or plugins, the tag will be repeated for each post. For example, The Loop displays the following information by default for each post:
You can display other information about each post using the appropriate Template Tags or (for advanced users) by accessing the variable, which is set with the current post’s information while The Loop is running.