Last active
August 29, 2015 14:27
-
-
Save rahularyan/fe5597a1622d7bcdeb0e to your computer and use it in GitHub Desktop.
Blog page template
This file contains hidden or 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 | |
| /** | |
| * Template Name: Blog Page | |
| * Template used to display blog page | |
| * | |
| * @package ab | |
| */ | |
| get_header(); ?> | |
| <div class="container"> | |
| <div class="row"> | |
| <div id="content" class="main-content-inner col-sm-12<?php echo is_active_sidebar( 'sidebar-1' ) ? ' col-md-9' : ' col-md-12' ?>"> | |
| <?php query_posts( 'show_posts=20&post_type=post&order=ASC&orderby=date' ); ?> | |
| <?php while ( have_posts() ) : the_post(); ?> | |
| <?php get_template_part( 'content', 'page' ); ?> | |
| <?php endwhile; // end of the loop. ?> | |
| </div><!-- close .*-inner (main-content or sidebar, depending if sidebar is used) --> | |
| <?php get_sidebar(); ?> | |
| </div><!-- close .row --> | |
| </div><!-- close .container --> | |
| <?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment