SlideShare a Scribd company logo
Doinā€™ da Loop
with da WordPrez


        Gary Barber
      radharc.com.au
    manwithnoblog.com
Iā€™m Assuming
ā€¢   You know what WordPress is and you have used it.
Iā€™m Assuming
ā€¢   You know what WordPress is and you have used it.

ā€¢   You know that you can use plugins and widgets
Iā€™m Assuming
ā€¢   You know what WordPress is and you have used it.

ā€¢   You know that you can use plugins and widgets

ā€¢   Your blog is not on wordpress.com
Iā€™m Assuming
ā€¢   You know what WordPress is and you have used it.

ā€¢   You know that you can use plugins and widgets

ā€¢   Your blog is not on wordpress.com

ā€¢   You know what PHP is
Iā€™m Assuming
ā€¢   You know what WordPress is and you have used it.

ā€¢   You know that you can use plugins and widgets

ā€¢   Your blog is not on wordpress.com

ā€¢   You know what PHP is

ā€¢   You are not happy coding
Iā€™m Assuming
ā€¢   You know what WordPress is and you have used it.

ā€¢   You know that you can use plugins and widgets

ā€¢   Your blog is not on wordpress.com

ā€¢   You know what PHP is

ā€¢   You are not happy coding

ā€¢   You have never pulled the templates apart
...Boring...So Get on With It....
What is the Loop
ā€¢   Itā€™s the core of WordPress
What is the Loop
ā€¢   Itā€™s the core of WordPress

ā€¢   Itā€™s a heap of PHP code over different ļ¬les that works
    together
What is the Loop
ā€¢   Itā€™s the core of WordPress

ā€¢   Itā€™s a heap of PHP code over different ļ¬les that works
    together

ā€¢   Lets you display your posts, comments and the rest of your
    blog
So where is the Loop
ā€¢   WordPress uses one
    central control point
So where is the Loop
ā€¢   WordPress uses one
    central control point

ā€¢   All requests go via this ļ¬le
    - index.php
So where is the Loop
ā€¢   WordPress uses one
    central control point

ā€¢   All requests go via this ļ¬le
    - index.php

ā€¢   Itā€™s your themes central
    control
So where is the Loop
ā€¢   WordPress uses one
    central control point

ā€¢   All requests go via this ļ¬le
    - index.php

ā€¢   Itā€™s your themes central
    control

ā€¢   Remove it you get the
    default theme
So where is the Loop
ā€¢   WordPress uses one
    central control point

ā€¢   All requests go via the ļ¬le
    - index.php

ā€¢   Itā€™s your themes central
    control

ā€¢   Remove it you get the
    default theme

ā€¢   Remove that ....
So where is the Loop
ā€¢   WordPress uses one
    central control point

ā€¢   All requests go via the ļ¬le
    - index.php

ā€¢   Itā€™s your themes central
    control

ā€¢   Remove it you get the
    default theme

ā€¢   Remove that and you get
    nothing
How does it work
    The Loop is really very basic
<?php get_header(); ?>

<?php if (have_posts())Ā ?>

<?php   while (have_posts())Ā ?>
<?php      the_post();?>
<?php      the_content();?>
<?php   endwhile; ?>

<?php endif;   ?>

<?php get_sidebar();?>
<?php get_footer(); ?>
How does it work
    The Loop is really very basic
                               Show the Page Header
<?php get_header(); ?>

<?php if (have_posts())Ā ?>

<?php   while (have_posts())Ā ?>
<?php      the_post();?>
<?php      the_content();?>
<?php   endwhile; ?>

<?php endif;   ?>

<?php get_sidebar();?>
<?php get_footer(); ?>
How does it work
    The Loop is really very basic
                               Show the Page Header
<?php get_header(); ?>

<?php if (have_posts())Ā ?>

<?php   while (have_posts())Ā ?>
<?php      the_post();?>
                                    Do the Loop!
<?php      the_content();?>
<?php   endwhile; ?>

<?php endif;   ?>

<?php get_sidebar();?>
<?php get_footer(); ?>
How does it work
    The Loop is really very basic
                               Show the Page Header
<?php get_header(); ?>

<?php if (have_posts())Ā ?>

<?php   while (have_posts())Ā ?>
<?php      the_post();?>
                                    Do the Loop!
<?php      the_content();?>
<?php   endwhile; ?>

<?php endif;   ?>

                             Show the Page Footer &
<?php get_sidebar();?>
<?php get_footer(); ?>
                                    Side Bar
In Detail
                                  ā€¢ Section One -
<?php if (have_posts())Ā ?>
                                    checks information
<?php   while (have_posts())Ā ?>
<?php      the_post();?>
<?php      the_content();?>

<?php   endwhile;   ?>


<?php endif;   ?>
In Detail
                                  ā€¢ Section One -
<?php if (have_posts())Ā ?>
                                    checks information
                                  ā€¢ Section Two - gets
<?php   while (have_posts())Ā ?>

                                    the posts, and
<?php      the_post();?>

                                    more information
<?php      the_content();?>

<?php   endwhile;   ?>


<?php endif;   ?>
In Detail
                                  ā€¢ Section One -
<?php if (have_posts())Ā ?>
                                    checks information
                                  ā€¢ Section Two - gets
<?php   while (have_posts())Ā ?>

                                      the posts, and
<?php      the_post();?>

                                      more information
<?php      the_content();?>

                                  ā€¢   Section Three -
<?php   endwhile;   ?>

                                      displays the posts
                                      and information
<?php endif;   ?>
And a Little Closer
                                  ā€¢ Check that there
<?php if (have_posts())Ā ?>
                                    are posts
<?php   while (have_posts())Ā ?>
<?php      the_post();?>
<?php      the_content();?>

<?php   endwhile;   ?>


<?php endif;   ?>
And a Little Closer
                                  ā€¢ Get information on
<?php if (have_posts())Ā ?>
                                    the post along with
                                    secondary
<?php   while (have_posts())Ā ?>

                                    information like:
<?php      the_post();?>
<?php      the_content();?>

                                    Post Title
<?php   endwhile;   ?>

                                    Publication Date
                                    Author
<?php endif;   ?>

                                    Categories
And a Little Closer
                                  ā€¢ Then WordPress
<?php if (have_posts())Ā ?>
                                   displays the post
                                   with all its
<?php   while (have_posts())Ā ?>

                                   formatting
<?php      the_post();?>

                                   information on
<?php      the_content();?>

                                   your blog
<?php   endwhile;   ?>


<?php endif;   ?>
And a Little Closer
                                  ā€¢ Then WordPress
<?php if (have_posts())Ā ?>
                                   goes and checks
                                   for more posts and
<?php   while (have_posts())Ā ?>

                                   we start again.
<?php      the_post();?>
<?php      the_content();?>

<?php   endwhile;   ?>


<?php endif;   ?>
Some Examples - Default
<?php get_header(); ?>
<div id=quot;contentquot; class=quot;narrowcolumnquot;>
<?php if (have_posts()) : ?>
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Some Examples - Default
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Some Examples - Default
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Some Examples - Default
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Some Examples - Default
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Some Examples - Default
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Some Examples - Default
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Some Examples - Default
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Items to Note
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Items to Note
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Items to Note
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Items to Note
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Items to Note
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Items to Note
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Items to Note
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Items to Note
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
	

 ?php while (have_posts()) : the_post(); ?
	

 	

 div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
	

 	

 	

 h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                      ?php the_title(); ?quot;?php the_title(); ?/a/h2
	

 	

 	

 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
	

 	

 	

 div class=quot;entryquot;
	

 	

 	

 	

 ?php the_content('Read the rest of this entry raquo;'); ?
	

 	

 	

 /div
	

 	

 	

 p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
	

 	

 	

 ?php edit_post_link('Edit', '', ' | '); ?
	

 	

 	

 ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
	

 	

 /div
	

 ?php endwhile; ?
	

 div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
	

 /div
?php else : ?
	

 h2 class=quot;centerquot;Not Found/h2
	

 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
	

 ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
Life After the Loop
?php get_header(); ?
div id=quot;contentquot; class=quot;narrowcolumnquot;
?php if (have_posts()) : ?
     ?php while (have_posts()) : the_post(); ?
          div class=quot;postquot; id=quot;post-?php the_ID(); ?quot;
            h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to
                 ?php the_title(); ?quot;?php the_title(); ?/a/h2
            small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small
            div class=quot;entryquot;
               ?php the_content('Read the rest of this entry raquo;'); ?
            /div
            p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? |
            ?php edit_post_link('Edit', '', ' | '); ?
            ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments
#187;'); ?/p
          /div
     ?php endwhile; ?
     div class=quot;navigationquot;
	

 	

 div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div
	

 	

 div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div
     /div
?php else : ?
     h2 class=quot;centerquot;Not Found/h2
     p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p
     ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ?
?php endif; ?
/div
?php get_sidebar(); ?
?php get_footer(); ?
...So when does it get Interesting...
The Loop is Breeding
ā€¢   The Loop is all through
    WordPress
The Loop is Breeding
ā€¢   The Loop is all through
    WordPress

ā€¢   In the Archive Template
The Loop is Breeding
ā€¢   The Loop is all through
    WordPress

ā€¢   In the Archive Template

ā€¢   In the Search Template
The Loop is Breeding
ā€¢   The Loop is all through
    WordPress

ā€¢   In the Archive Template

ā€¢   In the Search Template

ā€¢   Itā€™s even used for the
    generation of the
    comments
Customise the Loop
ā€¢   Change Archive and Search pages to display excerpt
Customise the Loop
ā€¢   Change Archive and Search pages to display excerpt

ā€¢   Customise the CSS for different times, dates, categories,
    authors days of the week
Customise the Loop
ā€¢   Change Archive and Search pages to display excerpt

ā€¢   Customise the CSS for different times, dates, categories,
    authors days of the week

ā€¢   Change your home page to a static one
Customise the Loop
ā€¢   Change Archive and Search pages to display excerpt

ā€¢   Customise the CSS for different times, dates, categories,
    authors days of the week

ā€¢   Change your home page to a static one

ā€¢   Place items between blog posts
Customise the Loop
ā€¢   Change Archive and Search pages to display excerpt

ā€¢   Customise the CSS for different times, dates, categories,
    authors days of the week

ā€¢   Change your home page to a static one

ā€¢   Place items between blog posts

ā€¢   Add a Lemon
Customise the Loop
ā€¢   Change Archive and Search pages to display excerpt

ā€¢   Customise the CSS for different times, dates, categories,
    authors days of the week

ā€¢   Change your home page to a static one

ā€¢   Place items between blog posts

ā€¢   Add a Lemon

ā€¢   But check for Plugins or Widgets ļ¬rst
Customising Demo
Thankyou
ā€¢                   ā€¢
    wordpress.org       drpritch
ā€¢                   ā€¢
    mattread.com        pierre pouliquin
ā€¢   ifelse.co.uk
ā€¢   Pennance368
ā€¢   fensterbme
ā€¢   fotopeet
ā€¢   gerardvschip
ā€¢   Niklas




              Distributed under Creative Commons License

              Gary Barber
              gary@manwithnoblog.com

              radharc.com.au
              manwithnoblog.com

More Related Content

What's hot

The Basics Of Page Creation
The Basics Of Page CreationThe Basics Of Page Creation
The Basics Of Page Creation
Wildan Maulana
Ā 
PHP
PHPPHP
What's new in Rails 2?
What's new in Rails 2?What's new in Rails 2?
What's new in Rails 2?
brynary
Ā 
Get Soaked - An In Depth Look At PHP Streams
Get Soaked - An In Depth Look At PHP StreamsGet Soaked - An In Depth Look At PHP Streams
Get Soaked - An In Depth Look At PHP StreamsDavey Shafik
Ā 
P H P Part I I, By Kian
P H P  Part  I I,  By  KianP H P  Part  I I,  By  Kian
P H P Part I I, By Kianphelios
Ā 
Perl Teach-In (part 1)
Perl Teach-In (part 1)Perl Teach-In (part 1)
Perl Teach-In (part 1)
Dave Cross
Ā 
Brian hogg word camp preparing a plugin for translation
Brian hogg   word camp preparing a plugin for translationBrian hogg   word camp preparing a plugin for translation
Brian hogg word camp preparing a plugin for translation
wcto2017
Ā 
All in one_seo_pack
All in one_seo_packAll in one_seo_pack
All in one_seo_pack
Human Relationships
Ā 
Web Typography with sIFR 3 at Drupalcamp Copenhagen
Web Typography with sIFR 3 at Drupalcamp CopenhagenWeb Typography with sIFR 3 at Drupalcamp Copenhagen
Web Typography with sIFR 3 at Drupalcamp Copenhagen
Mark Wubben
Ā 
Api Design
Api DesignApi Design
Api Design
sumithra jonnalagadda
Ā 
Getting started with MongoDB and PHP
Getting started with MongoDB and PHPGetting started with MongoDB and PHP
Getting started with MongoDB and PHP
gates10gen
Ā 
Preparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for TranslationPreparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for Translation
Brian Hogg
Ā 
Browser Extensions for Web Hackers
Browser Extensions for Web HackersBrowser Extensions for Web Hackers
Browser Extensions for Web Hackers
Mark Wubben
Ā 
Exploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your pluginsExploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your pluginsMarian Marinov
Ā 
Perl in the Internet of Things
Perl in the Internet of ThingsPerl in the Internet of Things
Perl in the Internet of Things
Dave Cross
Ā 
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
James Titcumb
Ā 
Overview of PHP and MYSQL
Overview of PHP and MYSQLOverview of PHP and MYSQL
Overview of PHP and MYSQL
Deblina Chowdhury
Ā 
Evolution of API With Blogging
Evolution of API With BloggingEvolution of API With Blogging
Evolution of API With Blogging
Takatsugu Shigeta
Ā 
Changing Template Engine
Changing Template EngineChanging Template Engine
Changing Template Engine
Takatsugu Shigeta
Ā 

What's hot (20)

The Basics Of Page Creation
The Basics Of Page CreationThe Basics Of Page Creation
The Basics Of Page Creation
Ā 
PHP
PHPPHP
PHP
Ā 
What's new in Rails 2?
What's new in Rails 2?What's new in Rails 2?
What's new in Rails 2?
Ā 
Get Soaked - An In Depth Look At PHP Streams
Get Soaked - An In Depth Look At PHP StreamsGet Soaked - An In Depth Look At PHP Streams
Get Soaked - An In Depth Look At PHP Streams
Ā 
P H P Part I I, By Kian
P H P  Part  I I,  By  KianP H P  Part  I I,  By  Kian
P H P Part I I, By Kian
Ā 
Perl Teach-In (part 1)
Perl Teach-In (part 1)Perl Teach-In (part 1)
Perl Teach-In (part 1)
Ā 
Brian hogg word camp preparing a plugin for translation
Brian hogg   word camp preparing a plugin for translationBrian hogg   word camp preparing a plugin for translation
Brian hogg word camp preparing a plugin for translation
Ā 
All in one_seo_pack
All in one_seo_packAll in one_seo_pack
All in one_seo_pack
Ā 
Web Typography with sIFR 3 at Drupalcamp Copenhagen
Web Typography with sIFR 3 at Drupalcamp CopenhagenWeb Typography with sIFR 3 at Drupalcamp Copenhagen
Web Typography with sIFR 3 at Drupalcamp Copenhagen
Ā 
Api Design
Api DesignApi Design
Api Design
Ā 
Getting started with MongoDB and PHP
Getting started with MongoDB and PHPGetting started with MongoDB and PHP
Getting started with MongoDB and PHP
Ā 
Preparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for TranslationPreparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for Translation
Ā 
Browser Extensions for Web Hackers
Browser Extensions for Web HackersBrowser Extensions for Web Hackers
Browser Extensions for Web Hackers
Ā 
Exploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your pluginsExploiting the newer perl to improve your plugins
Exploiting the newer perl to improve your plugins
Ā 
Perl in the Internet of Things
Perl in the Internet of ThingsPerl in the Internet of Things
Perl in the Internet of Things
Ā 
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
Kicking off with Zend Expressive and Doctrine ORM (PHP Srbija 2017)
Ā 
Ant
Ant Ant
Ant
Ā 
Overview of PHP and MYSQL
Overview of PHP and MYSQLOverview of PHP and MYSQL
Overview of PHP and MYSQL
Ā 
Evolution of API With Blogging
Evolution of API With BloggingEvolution of API With Blogging
Evolution of API With Blogging
Ā 
Changing Template Engine
Changing Template EngineChanging Template Engine
Changing Template Engine
Ā 

Similar to The Loop

How does get template part works in twenty ten theme
How does get template part works in twenty ten themeHow does get template part works in twenty ten theme
How does get template part works in twenty ten thememohd rozani abd ghani
Ā 
Word Camp Fukuoka2010
Word Camp Fukuoka2010Word Camp Fukuoka2010
Word Camp Fukuoka2010
YUKI YAMAGUCHI
Ā 
PSD to WordPress
PSD to WordPressPSD to WordPress
PSD to WordPress
Nile Flores
Ā 
Theming 101
Theming 101Theming 101
Theming 101
WinnipegWordcamp
Ā 
Entry-level PHP for WordPress
Entry-level PHP for WordPressEntry-level PHP for WordPress
Entry-level PHP for WordPress
sprclldr
Ā 
Word press templates
Word press templatesWord press templates
Word press templatesDan Phiffer
Ā 
Grok Drupal (7) Theming
Grok Drupal (7) ThemingGrok Drupal (7) Theming
Grok Drupal (7) Theming
PINGV
Ā 
Various Ways of Using WordPress
Various Ways of Using WordPressVarious Ways of Using WordPress
Various Ways of Using WordPress
Nick La
Ā 
Wordpress(css,php,js,ajax)
Wordpress(css,php,js,ajax)Wordpress(css,php,js,ajax)
Wordpress(css,php,js,ajax)
SARAVANAN RAMAOORTHY
Ā 
Grok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb updateGrok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb update
Laura Scott
Ā 
Word Press Help Sheet
Word Press Help SheetWord Press Help Sheet
Word Press Help Sheet
jeyakumar sengottaiyan
Ā 
WordPress and PHP - It Takes One to Know One
WordPress and PHP - It Takes One to Know OneWordPress and PHP - It Takes One to Know One
WordPress and PHP - It Takes One to Know One
Lorelle VanFossen
Ā 
Creating Themes
Creating ThemesCreating Themes
Creating Themes
DaisyOlsen
Ā 
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Mike Schinkel
Ā 
Agile Wordpress
Agile WordpressAgile Wordpress
Agile Wordpress
Filippo Dino
Ā 
The WordPress Loop
The  WordPress LoopThe  WordPress Loop
The WordPress Loop
Giustino Borzacchiello
Ā 
Introduction to WordPress Theme Development
Introduction to WordPress Theme DevelopmentIntroduction to WordPress Theme Development
Introduction to WordPress Theme Development
Sitdhibong Laokok
Ā 
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02sos informatique
Ā 

Similar to The Loop (20)

How does get template part works in twenty ten theme
How does get template part works in twenty ten themeHow does get template part works in twenty ten theme
How does get template part works in twenty ten theme
Ā 
Word Camp Fukuoka2010
Word Camp Fukuoka2010Word Camp Fukuoka2010
Word Camp Fukuoka2010
Ā 
PSD to WordPress
PSD to WordPressPSD to WordPress
PSD to WordPress
Ā 
Theming 101
Theming 101Theming 101
Theming 101
Ā 
20110820 header new style
20110820 header new style20110820 header new style
20110820 header new style
Ā 
Entry-level PHP for WordPress
Entry-level PHP for WordPressEntry-level PHP for WordPress
Entry-level PHP for WordPress
Ā 
Word press templates
Word press templatesWord press templates
Word press templates
Ā 
Grok Drupal (7) Theming
Grok Drupal (7) ThemingGrok Drupal (7) Theming
Grok Drupal (7) Theming
Ā 
Various Ways of Using WordPress
Various Ways of Using WordPressVarious Ways of Using WordPress
Various Ways of Using WordPress
Ā 
Wordpress(css,php,js,ajax)
Wordpress(css,php,js,ajax)Wordpress(css,php,js,ajax)
Wordpress(css,php,js,ajax)
Ā 
Grok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb updateGrok Drupal (7) Theming - 2011 Feb update
Grok Drupal (7) Theming - 2011 Feb update
Ā 
Word Press Help Sheet
Word Press Help SheetWord Press Help Sheet
Word Press Help Sheet
Ā 
WordPress and PHP - It Takes One to Know One
WordPress and PHP - It Takes One to Know OneWordPress and PHP - It Takes One to Know One
WordPress and PHP - It Takes One to Know One
Ā 
Creating Themes
Creating ThemesCreating Themes
Creating Themes
Ā 
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Ā 
Agile Wordpress
Agile WordpressAgile Wordpress
Agile Wordpress
Ā 
The WordPress Loop
The  WordPress LoopThe  WordPress Loop
The WordPress Loop
Ā 
Introduction to WordPress Theme Development
Introduction to WordPress Theme DevelopmentIntroduction to WordPress Theme Development
Introduction to WordPress Theme Development
Ā 
Wt unit 4 server side technology-2
Wt unit 4 server side technology-2Wt unit 4 server side technology-2
Wt unit 4 server side technology-2
Ā 
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Howdoesgettemplatepartworksintwentytentheme 110123234953-phpapp02
Ā 

More from Gary Barber

Service Design 2016 Conference Sketchnotes
Service Design 2016 Conference Sketchnotes Service Design 2016 Conference Sketchnotes
Service Design 2016 Conference Sketchnotes
Gary Barber
Ā 
Webstock2016 Sketchnotes
Webstock2016 Sketchnotes Webstock2016 Sketchnotes
Webstock2016 Sketchnotes
Gary Barber
Ā 
Sketchnotes from UX Australia 2015
Sketchnotes from UX Australia 2015Sketchnotes from UX Australia 2015
Sketchnotes from UX Australia 2015
Gary Barber
Ā 
UX Australia 2014 Conference Sketchnotes
UX Australia 2014 Conference SketchnotesUX Australia 2014 Conference Sketchnotes
UX Australia 2014 Conference Sketchnotes
Gary Barber
Ā 
Agile UX 2015 Conference
Agile UX 2015 ConferenceAgile UX 2015 Conference
Agile UX 2015 Conference
Gary Barber
Ā 
Sketchnotes
SketchnotesSketchnotes
Sketchnotes
Gary Barber
Ā 
AgileUX
AgileUXAgileUX
AgileUX
Gary Barber
Ā 
Design Synthesis
Design SynthesisDesign Synthesis
Design Synthesis
Gary Barber
Ā 
Inspiring Creativity
Inspiring CreativityInspiring Creativity
Inspiring Creativity
Gary Barber
Ā 
Outta time,ā€Ø scope, ā€Øand we fixed that already ā€ØIs there a Disconnect
Outta time,ā€Ø scope, ā€Øand we fixed that already ā€ØIs there a Disconnect Outta time,ā€Ø scope, ā€Øand we fixed that already ā€ØIs there a Disconnect
Outta time,ā€Ø scope, ā€Øand we fixed that already ā€ØIs there a Disconnect
Gary Barber
Ā 
Virtual design walls
Virtual design wallsVirtual design walls
Virtual design walls
Gary Barber
Ā 
The Blu Tack Gun
The Blu Tack GunThe Blu Tack Gun
The Blu Tack Gun
Gary Barber
Ā 
Ability to Use
Ability to UseAbility to Use
Ability to Use
Gary Barber
Ā 
Kill Accessibility
Kill AccessibilityKill Accessibility
Kill Accessibility
Gary Barber
Ā 
UX Architecture for the Small Guy
UX Architecture for the Small GuyUX Architecture for the Small Guy
UX Architecture for the Small Guy
Gary Barber
Ā 
Why the Web
Why the WebWhy the Web
Why the Web
Gary Barber
Ā 
The Art of Skywriting - The Demise of the Tag Cloud
The Art of Skywriting - The Demise of the Tag CloudThe Art of Skywriting - The Demise of the Tag Cloud
The Art of Skywriting - The Demise of the Tag Cloud
Gary Barber
Ā 
Redux Of The Equaliser
Redux Of The EqualiserRedux Of The Equaliser
Redux Of The Equaliser
Gary Barber
Ā 
Persuasive Web Design
Persuasive Web DesignPersuasive Web Design
Persuasive Web Design
Gary Barber
Ā 
Was it Good for You Too Honey - UX Getting it Wrong
Was it Good for You Too Honey - UX Getting it WrongWas it Good for You Too Honey - UX Getting it Wrong
Was it Good for You Too Honey - UX Getting it Wrong
Gary Barber
Ā 

More from Gary Barber (20)

Service Design 2016 Conference Sketchnotes
Service Design 2016 Conference Sketchnotes Service Design 2016 Conference Sketchnotes
Service Design 2016 Conference Sketchnotes
Ā 
Webstock2016 Sketchnotes
Webstock2016 Sketchnotes Webstock2016 Sketchnotes
Webstock2016 Sketchnotes
Ā 
Sketchnotes from UX Australia 2015
Sketchnotes from UX Australia 2015Sketchnotes from UX Australia 2015
Sketchnotes from UX Australia 2015
Ā 
UX Australia 2014 Conference Sketchnotes
UX Australia 2014 Conference SketchnotesUX Australia 2014 Conference Sketchnotes
UX Australia 2014 Conference Sketchnotes
Ā 
Agile UX 2015 Conference
Agile UX 2015 ConferenceAgile UX 2015 Conference
Agile UX 2015 Conference
Ā 
Sketchnotes
SketchnotesSketchnotes
Sketchnotes
Ā 
AgileUX
AgileUXAgileUX
AgileUX
Ā 
Design Synthesis
Design SynthesisDesign Synthesis
Design Synthesis
Ā 
Inspiring Creativity
Inspiring CreativityInspiring Creativity
Inspiring Creativity
Ā 
Outta time,ā€Ø scope, ā€Øand we fixed that already ā€ØIs there a Disconnect
Outta time,ā€Ø scope, ā€Øand we fixed that already ā€ØIs there a Disconnect Outta time,ā€Ø scope, ā€Øand we fixed that already ā€ØIs there a Disconnect
Outta time,ā€Ø scope, ā€Øand we fixed that already ā€ØIs there a Disconnect
Ā 
Virtual design walls
Virtual design wallsVirtual design walls
Virtual design walls
Ā 
The Blu Tack Gun
The Blu Tack GunThe Blu Tack Gun
The Blu Tack Gun
Ā 
Ability to Use
Ability to UseAbility to Use
Ability to Use
Ā 
Kill Accessibility
Kill AccessibilityKill Accessibility
Kill Accessibility
Ā 
UX Architecture for the Small Guy
UX Architecture for the Small GuyUX Architecture for the Small Guy
UX Architecture for the Small Guy
Ā 
Why the Web
Why the WebWhy the Web
Why the Web
Ā 
The Art of Skywriting - The Demise of the Tag Cloud
The Art of Skywriting - The Demise of the Tag CloudThe Art of Skywriting - The Demise of the Tag Cloud
The Art of Skywriting - The Demise of the Tag Cloud
Ā 
Redux Of The Equaliser
Redux Of The EqualiserRedux Of The Equaliser
Redux Of The Equaliser
Ā 
Persuasive Web Design
Persuasive Web DesignPersuasive Web Design
Persuasive Web Design
Ā 
Was it Good for You Too Honey - UX Getting it Wrong
Was it Good for You Too Honey - UX Getting it WrongWas it Good for You Too Honey - UX Getting it Wrong
Was it Good for You Too Honey - UX Getting it Wrong
Ā 

Recently uploaded

When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
Ā 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
Ā 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
Ā 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
Ā 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
Ā 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
Ā 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
Ā 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
Ā 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
Ā 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
Ā 
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
UiPathCommunity
Ā 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
Ā 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
Ā 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
Ā 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
Ā 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
Ā 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
Ā 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
Ā 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
Ā 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
Ā 

Recently uploaded (20)

When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Ā 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Ā 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Ā 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
Ā 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
Ā 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Ā 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Ā 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Ā 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ā 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Ā 
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder ā€“ active learning and UiPath LLMs for do...
Ā 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
Ā 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Ā 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Ā 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Ā 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Ā 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Ā 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
Ā 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Ā 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Ā 

The Loop

  • 1. Doinā€™ da Loop with da WordPrez Gary Barber radharc.com.au manwithnoblog.com
  • 2. Iā€™m Assuming ā€¢ You know what WordPress is and you have used it.
  • 3. Iā€™m Assuming ā€¢ You know what WordPress is and you have used it. ā€¢ You know that you can use plugins and widgets
  • 4. Iā€™m Assuming ā€¢ You know what WordPress is and you have used it. ā€¢ You know that you can use plugins and widgets ā€¢ Your blog is not on wordpress.com
  • 5. Iā€™m Assuming ā€¢ You know what WordPress is and you have used it. ā€¢ You know that you can use plugins and widgets ā€¢ Your blog is not on wordpress.com ā€¢ You know what PHP is
  • 6. Iā€™m Assuming ā€¢ You know what WordPress is and you have used it. ā€¢ You know that you can use plugins and widgets ā€¢ Your blog is not on wordpress.com ā€¢ You know what PHP is ā€¢ You are not happy coding
  • 7. Iā€™m Assuming ā€¢ You know what WordPress is and you have used it. ā€¢ You know that you can use plugins and widgets ā€¢ Your blog is not on wordpress.com ā€¢ You know what PHP is ā€¢ You are not happy coding ā€¢ You have never pulled the templates apart
  • 9. What is the Loop ā€¢ Itā€™s the core of WordPress
  • 10. What is the Loop ā€¢ Itā€™s the core of WordPress ā€¢ Itā€™s a heap of PHP code over different ļ¬les that works together
  • 11. What is the Loop ā€¢ Itā€™s the core of WordPress ā€¢ Itā€™s a heap of PHP code over different ļ¬les that works together ā€¢ Lets you display your posts, comments and the rest of your blog
  • 12.
  • 13. So where is the Loop ā€¢ WordPress uses one central control point
  • 14. So where is the Loop ā€¢ WordPress uses one central control point ā€¢ All requests go via this ļ¬le - index.php
  • 15. So where is the Loop ā€¢ WordPress uses one central control point ā€¢ All requests go via this ļ¬le - index.php ā€¢ Itā€™s your themes central control
  • 16. So where is the Loop ā€¢ WordPress uses one central control point ā€¢ All requests go via this ļ¬le - index.php ā€¢ Itā€™s your themes central control ā€¢ Remove it you get the default theme
  • 17. So where is the Loop ā€¢ WordPress uses one central control point ā€¢ All requests go via the ļ¬le - index.php ā€¢ Itā€™s your themes central control ā€¢ Remove it you get the default theme ā€¢ Remove that ....
  • 18.
  • 19. So where is the Loop ā€¢ WordPress uses one central control point ā€¢ All requests go via the ļ¬le - index.php ā€¢ Itā€™s your themes central control ā€¢ Remove it you get the default theme ā€¢ Remove that and you get nothing
  • 20. How does it work The Loop is really very basic <?php get_header(); ?> <?php if (have_posts())Ā ?> <?php while (have_posts())Ā ?> <?php the_post();?> <?php the_content();?> <?php endwhile; ?> <?php endif; ?> <?php get_sidebar();?> <?php get_footer(); ?>
  • 21. How does it work The Loop is really very basic Show the Page Header <?php get_header(); ?> <?php if (have_posts())Ā ?> <?php while (have_posts())Ā ?> <?php the_post();?> <?php the_content();?> <?php endwhile; ?> <?php endif; ?> <?php get_sidebar();?> <?php get_footer(); ?>
  • 22. How does it work The Loop is really very basic Show the Page Header <?php get_header(); ?> <?php if (have_posts())Ā ?> <?php while (have_posts())Ā ?> <?php the_post();?> Do the Loop! <?php the_content();?> <?php endwhile; ?> <?php endif; ?> <?php get_sidebar();?> <?php get_footer(); ?>
  • 23. How does it work The Loop is really very basic Show the Page Header <?php get_header(); ?> <?php if (have_posts())Ā ?> <?php while (have_posts())Ā ?> <?php the_post();?> Do the Loop! <?php the_content();?> <?php endwhile; ?> <?php endif; ?> Show the Page Footer & <?php get_sidebar();?> <?php get_footer(); ?> Side Bar
  • 24. In Detail ā€¢ Section One - <?php if (have_posts())Ā ?> checks information <?php while (have_posts())Ā ?> <?php the_post();?> <?php the_content();?> <?php endwhile; ?> <?php endif; ?>
  • 25.
  • 26.
  • 27.
  • 28. In Detail ā€¢ Section One - <?php if (have_posts())Ā ?> checks information ā€¢ Section Two - gets <?php while (have_posts())Ā ?> the posts, and <?php the_post();?> more information <?php the_content();?> <?php endwhile; ?> <?php endif; ?>
  • 29.
  • 30. In Detail ā€¢ Section One - <?php if (have_posts())Ā ?> checks information ā€¢ Section Two - gets <?php while (have_posts())Ā ?> the posts, and <?php the_post();?> more information <?php the_content();?> ā€¢ Section Three - <?php endwhile; ?> displays the posts and information <?php endif; ?>
  • 31.
  • 32. And a Little Closer ā€¢ Check that there <?php if (have_posts())Ā ?> are posts <?php while (have_posts())Ā ?> <?php the_post();?> <?php the_content();?> <?php endwhile; ?> <?php endif; ?>
  • 33. And a Little Closer ā€¢ Get information on <?php if (have_posts())Ā ?> the post along with secondary <?php while (have_posts())Ā ?> information like: <?php the_post();?> <?php the_content();?> Post Title <?php endwhile; ?> Publication Date Author <?php endif; ?> Categories
  • 34. And a Little Closer ā€¢ Then WordPress <?php if (have_posts())Ā ?> displays the post with all its <?php while (have_posts())Ā ?> formatting <?php the_post();?> information on <?php the_content();?> your blog <?php endwhile; ?> <?php endif; ?>
  • 35. And a Little Closer ā€¢ Then WordPress <?php if (have_posts())Ā ?> goes and checks for more posts and <?php while (have_posts())Ā ?> we start again. <?php the_post();?> <?php the_content();?> <?php endwhile; ?> <?php endif; ?>
  • 36. Some Examples - Default <?php get_header(); ?> <div id=quot;contentquot; class=quot;narrowcolumnquot;> <?php if (have_posts()) : ?> ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 37. Some Examples - Default ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 38. Some Examples - Default ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 39. Some Examples - Default ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 40. Some Examples - Default ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 41. Some Examples - Default ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 42. Some Examples - Default ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 43. Some Examples - Default ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 44. Items to Note ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 45. Items to Note ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 46. Items to Note ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 47. Items to Note ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 48. Items to Note ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 49. Items to Note ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 50. Items to Note ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 51. Items to Note ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 52. Life After the Loop ?php get_header(); ? div id=quot;contentquot; class=quot;narrowcolumnquot; ?php if (have_posts()) : ? ?php while (have_posts()) : the_post(); ? div class=quot;postquot; id=quot;post-?php the_ID(); ?quot; h2a href=quot;?php the_permalink() ?quot; rel=quot;bookmarkquot; title=quot;Permanent Link to ?php the_title(); ?quot;?php the_title(); ?/a/h2 small?php the_time('F jS, Y') ? !-- by ?php the_author() ? --/small div class=quot;entryquot; ?php the_content('Read the rest of this entry raquo;'); ? /div p class=quot;postmetadataquot;Posted in ?php the_category(', ') ? | ?php edit_post_link('Edit', '', ' | '); ? ?php comments_popup_link('No Comments #187;', '1 Comment #187;', '% Comments #187;'); ?/p /div ?php endwhile; ? div class=quot;navigationquot; div class=quot;alignleftquot;?php next_posts_link('laquo; Previous Entries') ?/div div class=quot;alignrightquot;?php previous_posts_link('Next Entries raquo;') ?/div /div ?php else : ? h2 class=quot;centerquot;Not Found/h2 p class=quot;centerquot;Sorry, but you are looking for something that isn't here./p ?php include (TEMPLATEPATH . quot;/searchform.phpquot;); ? ?php endif; ? /div ?php get_sidebar(); ? ?php get_footer(); ?
  • 53. ...So when does it get Interesting...
  • 54. The Loop is Breeding ā€¢ The Loop is all through WordPress
  • 55. The Loop is Breeding ā€¢ The Loop is all through WordPress ā€¢ In the Archive Template
  • 56. The Loop is Breeding ā€¢ The Loop is all through WordPress ā€¢ In the Archive Template ā€¢ In the Search Template
  • 57. The Loop is Breeding ā€¢ The Loop is all through WordPress ā€¢ In the Archive Template ā€¢ In the Search Template ā€¢ Itā€™s even used for the generation of the comments
  • 58. Customise the Loop ā€¢ Change Archive and Search pages to display excerpt
  • 59. Customise the Loop ā€¢ Change Archive and Search pages to display excerpt ā€¢ Customise the CSS for different times, dates, categories, authors days of the week
  • 60. Customise the Loop ā€¢ Change Archive and Search pages to display excerpt ā€¢ Customise the CSS for different times, dates, categories, authors days of the week ā€¢ Change your home page to a static one
  • 61. Customise the Loop ā€¢ Change Archive and Search pages to display excerpt ā€¢ Customise the CSS for different times, dates, categories, authors days of the week ā€¢ Change your home page to a static one ā€¢ Place items between blog posts
  • 62. Customise the Loop ā€¢ Change Archive and Search pages to display excerpt ā€¢ Customise the CSS for different times, dates, categories, authors days of the week ā€¢ Change your home page to a static one ā€¢ Place items between blog posts ā€¢ Add a Lemon
  • 63. Customise the Loop ā€¢ Change Archive and Search pages to display excerpt ā€¢ Customise the CSS for different times, dates, categories, authors days of the week ā€¢ Change your home page to a static one ā€¢ Place items between blog posts ā€¢ Add a Lemon ā€¢ But check for Plugins or Widgets ļ¬rst
  • 65. Thankyou ā€¢ ā€¢ wordpress.org drpritch ā€¢ ā€¢ mattread.com pierre pouliquin ā€¢ ifelse.co.uk ā€¢ Pennance368 ā€¢ fensterbme ā€¢ fotopeet ā€¢ gerardvschip ā€¢ Niklas Distributed under Creative Commons License Gary Barber gary@manwithnoblog.com radharc.com.au manwithnoblog.com