What good is WordPress if we are just working with static HTML content. We need dynamic content that we can change on the fly and our page will be updated. Well, the reason WordPress was created was for this exact reason. In this screencast we’ll dive into the WordPress Loop which makes all the magic stuff happen. We’ll also turn our dynamic content into a working Blog. This is possible because of Posts. We can add as many as we want and WordPress will keep track of them all (by inserting them into the database) and spit them back at us when we go to the home page.
Super simple loop for index.php
if (have_posts()) :
while (have_posts()) :
More useful loop for index.php
Links Used in this Screencast
Download the finished files for this Screencast here
Back to Main WordPress Page with list of tutorials on creating a WordPress custom theme from scratch.