-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage-archive.php
73 lines (50 loc) · 1.88 KB
/
page-archive.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/*
Template Name: Archive
*/
?>
<?php get_header(); ?>
<div class="global_content_wrapper">
<div class="container_12">
<div class="grid_8">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="page_archive_content_hr"></div>
<h2 class="page_archive_subtitle"><?php _e( 'The last posts', 'theretailer' ); ?></h2>
<div id="primary" class="content-area page-archive">
<div id="content" class="site-content" role="main">
<ul>
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('posts_per_page=30'.'&paged='.$paged);
while ($wp_query->have_posts()) : $wp_query->the_post();
?>
<li>
<span class="page_archive_date">
<span class="from_the_blog_date_day"><?php echo get_the_time('d', $post->ID); ?></span>
<span class="from_the_blog_date_month"><?php echo get_the_time('M', $post->ID); ?></span>
</span>
<div class="page_archive_items">
<a class="" href="<?php the_permalink() ?>"><h3><?php the_title(); ?></h3></a>
<div class="comments"><?php echo get_comments_number( get_the_ID() ); ?> comments</div>
</div>
</li>
<?php endwhile; // end of the loop. ?>
</ul>
<?php $wp_query = null; $wp_query = $temp;?>
</div><!-- #content .site-content -->
</div><!-- #primary .content-area -->
</div>
<div class="grid_4">
<div class="gbtr_aside_column">
<?php
get_sidebar();
?>
</div>
</div>
</div>
</div>
<?php get_template_part("light_footer"); ?>
<?php get_template_part("dark_footer"); ?>
<?php get_footer(); ?>