• Like
  • Save
The WordPress Loop WordCamp 2010
Upcoming SlideShare
Loading in...5
×
 

The WordPress Loop WordCamp 2010

on

  • 1,748 views

Just a presentation that showcases the WordPress loop, and how it can be modified. More info at <a>JakeSpurlock.com</a>

Just a presentation that showcases the WordPress loop, and how it can be modified. More info at <a>JakeSpurlock.com</a>

Statistics

Views

Total Views
1,748
Views on SlideShare
1,632
Embed Views
116

Actions

Likes
0
Downloads
9
Comments
0

4 Embeds 116

http://jakespurlock.com 111
http://translate.googleusercontent.com 2
http://www.linkedin.com 2
http://wonder-tonic.com 1

Accessibility

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

The WordPress Loop WordCamp 2010 The WordPress Loop WordCamp 2010 Presentation Transcript

  • The Loop Adding even more functionality...
  • What is the loop? • The Loop is used by WordPress to display each of your posts. Using The Loop, WordPress processes each of the posts to be displayed on the current page and formats them according to how they match specified criteria within The Loop tags.
  • <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  • <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?>
  • <h2> <a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"> <?php the_title(); ?></a> </h2> <small><?php the_time('F jS,Y') ?> by <?php the_author() ?></small>
  • <div class="entry"> <?php the_content('Read the rest of this entry &raquo;'); ?> </div>
  • <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
  • Demo