Lucy Glade-Wright
  • ABOUT
  • CONTACT
  • HUNTING FOR GEORGE

Sign up to receive exclusive content updates, fashion & beauty tips!

Lucy Glade-Wright
  • ABOUT
  • CONTACT
  • HUNTING FOR GEORGE
Follow

What is The WordPress Loop?

Posted on March 14, 2018

Share

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.

Subscribe so you don’t miss a post
Sign up with your email address to receive news and updates!

previously

I don’t know what all the WordPress terms mean: where can I get help?

up next

What is WordPress?

Recent Comments

    Archives

    Categories

    • No categories

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    Hi, my name is Megan

    Hi, my name is Megan

    I'm a student living in London. This blog is to provide you with daily outfit ideas and share my personal style.

    signature
    Read more

    Follow me

    Recent Pins

    Most popular

    Sorry, no posts matched your criteria.

    INSTAGRAM @LucyGladeWright

    No any image found. Please check it again or try with another instagram account.

    ​Copyright © 2021 Lucy Glade-Wright | All Rights Reserved

    We use cookies to ensure you get the best experience on our website.

    OK