Created
August 25, 2014 19:02
-
-
Save andredelgado/b6c5bf35428c8b58c55d to your computer and use it in GitHub Desktop.
wordpress loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<!-- #### THE LOOP #### --> | |
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
<h2><?php the_title(); ?></h2> | |
<span class="author">Written by <?php the_author(); ?></span> | |
<span class="date">on <?php the_time('F jS, Y'); ?></span> | |
<?php the_content('(Read More...)'); ?> | |
<?php endwhile; else : ?> | |
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p> | |
<?php endif; ?> | |
<?php get_sidebar(); ?> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment