SlideShare a Scribd company logo
1 of 65
Download to read offline
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 files that works
    together
What is the Loop
•   It’s the core of WordPress

•   It’s a heap of PHP code over different files 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 file
    - index.php
So where is the Loop
•   WordPress uses one
    central control point

•   All requests go via this file
    - index.php

•   It’s your themes central
    control
So where is the Loop
•   WordPress uses one
    central control point

•   All requests go via this file
    - 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 file
    - 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 file
    - 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 first
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 CreationWildan Maulana
 
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 translationwcto2017
 
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 CopenhagenMark Wubben
 
Getting started with MongoDB and PHP
Getting started with MongoDB and PHPGetting started with MongoDB and PHP
Getting started with MongoDB and PHPgates10gen
 
Preparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for TranslationPreparing a WordPress Plugin for Translation
Preparing a WordPress Plugin for TranslationBrian Hogg
 
Browser Extensions for Web Hackers
Browser Extensions for Web HackersBrowser Extensions for Web Hackers
Browser Extensions for Web HackersMark 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 ThingsDave 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
 
Evolution of API With Blogging
Evolution of API With BloggingEvolution of API With Blogging
Evolution of API With BloggingTakatsugu 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
 
PSD to WordPress
PSD to WordPressPSD to WordPress
PSD to WordPressNile Flores
 
Entry-level PHP for WordPress
Entry-level PHP for WordPressEntry-level PHP for WordPress
Entry-level PHP for WordPresssprclldr
 
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) ThemingPINGV
 
Various Ways of Using WordPress
Various Ways of Using WordPressVarious Ways of Using WordPress
Various Ways of Using WordPressNick La
 
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 updateLaura Scott
 
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 OneLorelle VanFossen
 
Creating Themes
Creating ThemesCreating Themes
Creating ThemesDaisyOlsen
 
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
 
Introduction to WordPress Theme Development
Introduction to WordPress Theme DevelopmentIntroduction to WordPress Theme Development
Introduction to WordPress Theme DevelopmentSitdhibong 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 2015Gary Barber
 
UX Australia 2014 Conference Sketchnotes
UX Australia 2014 Conference SketchnotesUX Australia 2014 Conference Sketchnotes
UX Australia 2014 Conference SketchnotesGary Barber
 
Agile UX 2015 Conference
Agile UX 2015 ConferenceAgile UX 2015 Conference
Agile UX 2015 ConferenceGary Barber
 
Design Synthesis
Design SynthesisDesign Synthesis
Design SynthesisGary Barber
 
Inspiring Creativity
Inspiring CreativityInspiring Creativity
Inspiring CreativityGary 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 wallsGary Barber
 
The Blu Tack Gun
The Blu Tack GunThe Blu Tack Gun
The Blu Tack GunGary Barber
 
Kill Accessibility
Kill AccessibilityKill Accessibility
Kill AccessibilityGary Barber
 
UX Architecture for the Small Guy
UX Architecture for the Small GuyUX Architecture for the Small Guy
UX Architecture for the Small GuyGary 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 CloudGary Barber
 
Redux Of The Equaliser
Redux Of The EqualiserRedux Of The Equaliser
Redux Of The EqualiserGary Barber
 
Persuasive Web Design
Persuasive Web DesignPersuasive Web Design
Persuasive Web DesignGary 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 WrongGary 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

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 

Recently uploaded (20)

Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 

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 files that works together
  • 11. What is the Loop • It’s the core of WordPress • It’s a heap of PHP code over different files 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 file - index.php
  • 15. So where is the Loop • WordPress uses one central control point • All requests go via this file - 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 file - 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 file - 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 file - 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 first
  • 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