-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive-posts.php
51 lines (33 loc) · 1.12 KB
/
archive-posts.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
42
43
44
45
46
47
48
49
50
51
<?php
/*
Template Name: Blog
*/
?>
<?php get_header(); ?>
<div class="section lightgrey" id="blog-overview">
<?php if ( have_posts() ) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="container">
<div class="row">
<div class="col s12">
<h1 class="center header text_h2"><?php the_title(); ?></h1>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<div id="primary" class="content-area container">
<main id="main" class="site-main" role="main">
<!-- Posts -->
<?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; ?>
<?php query_posts('showposts=6&post_type=post&paged=' . $paged); // First post Featured ?>
<?php get_template_part('template-parts/loop', 'archive'); ?>
<?php rewind_posts(); ?>
<!-- /Posts -->
<?php //the_posts_navigation(); // http://wordpress.stackexchange.com/questions/174907/how-to-use-the-posts-navigation-for-wp-query-and-get-posts ?>
</main><!-- #main -->
</div><!-- #primary -->
</div><!-- c/lass="section lightgrey" id="blog-overview" -->
<?php
get_sidebar();
get_footer();