Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="main">
- <div class="container">
- <?php if(have_posts()) : ?> <!--Checks to see if there are posts-->
- <?php while (have_posts()): the_post (); ?>
- <article class="post">
- <h3><a href="<?php the_permalink()?>"><!--Creates link to the post-->
- <?php the_title(); ?>
- </a>
- </h3><!--Displays post title in headline-->
- <div class="meta">Created By <?php the_author(); ?> on <?php the_date(); ?></div><!--Displays author of post and date posted-->
- <?php if (has_post_thumbnail()) : ?> <!--Checks to see if the post has a thumbnail-->
- <div class="post_thumbnail"><?php the_post_thumbnail(); ?>
- </div> <!--Displays post thumbnail-->
- <?php the_content(); ?> <!-- Displays the post content-->
- <br>
- <h3><a class="button" href="<?php the_permalink()?>"><!--Creates link to the post-->
- Read More...
- </a>
- </article>
- <?php endwhile; ?>
- <?php else: ?>
- <?php echo wpautop('Sorry, No posts were found'); ?>
- <?php endif; ?>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement