Skip to content

Instantly share code, notes, and snippets.

@alexadark
Created November 9, 2013 16:49
Show Gist options
  • Save alexadark/7387307 to your computer and use it in GitHub Desktop.
Save alexadark/7387307 to your computer and use it in GitHub Desktop.
WP: loop
<?php get_header(); ?>
<?php if (have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h3><?php the_title(); ?></h3>
<?php the_content( ); ?>
<hr>
<?php endwhile; else: ?>
<p>there's no posts or pages</p>
<?php endif; ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment