Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-md-9 col-md-pull-3 col-sm-8 col-sm-pull-4">
- <?php
- if ( is_search() ) {
- echo "<h3>Search Results for: ", esc_html( get_search_query( false ) ), "</h3>";
- } elseif ( !is_home() ) {
- the_archive_title( '<h3 class="page-title">', '</h3>' );
- the_archive_description( '<div class="taxonomy-description">', '</div>' );
- }
- ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="blog-post hr-bot">
- <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
- <p><i class="fa fa-clock-o blue"></i> <?php echo get_the_date(); ?></p>
- <?php if ( has_post_thumbnail() ) { ?>
- <div class="row">
- <div class='col-md-3'>
- <?php the_post_thumbnail('featured-image-thumbnail'); ?>
- </div>
- <div class='col-md-9'>
- <?php the_excerpt() ?>
- <a href="<?php the_permalink(); ?>"><button type="button" class="btn btn-success"><i class="fa fa-file-text-o"></i> Read Full Post</button></a>
- </div>
- </div>
- <?php } else { ?>
- <p><?php the_excerpt() ?></p>
- <a href="<?php the_permalink(); ?>"><button type="button" class="btn btn-success"><i class="fa fa-file-text-o"></i> Read Full Post</button></a>
- <?php } ?>
- </div>
- <?php endwhile; ?>
- <div style="margin-bottom:20px;">
- <?php previous_posts_link(__( '<button class="btn btn-primary pull-left"><i class="fa fa-long-arrow-left"></i> Newer Posts</button>' )) ?>
- <?php next_posts_link(__( '<button class="btn btn-primary pull-right">Older Posts <i class="fa fa-long-arrow-right"></i></button>' )) ?>
- <div class="clearfix"></div>
- </div>
- <?php else : ?>
- <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <h3>No Posts Found</h1>
- </div>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement