-
Notifications
You must be signed in to change notification settings - Fork 1
/
home.php
41 lines (33 loc) · 1.1 KB
/
home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php get_header(); ?>
<div class="whatpageisthis">home.php</div>
<!-- <div id="enable_javascript">Please enable your javascript to have a better view of the website. Click <a href="http://activatejavascript.org">here</a> to learn more about it.</div> -->
<div class="container">
<div class="row">
<div class="span8" id="content">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
'paged' => $paged,
'ignore_sticky_posts' =>1,
'orderby' => 'date',
'order' => 'DESC'
);
query_posts($args);
?>
<?php
if (have_posts()) : while (have_posts()) : the_post();
if(!get_post_format()) {
get_template_part('format', 'standard');
} else {
get_template_part('format', get_post_format());
}
endwhile;
posts_nav_link();
wp_reset_query();
endif;
?>
</div><!--#content .span8 -->
<?php get_sidebar(); ?>
</div><!-- row -->
</div><!-- container -->
<?php get_footer(); ?>