-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive-blog.php
54 lines (41 loc) · 1.66 KB
/
archive-blog.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
<?php get_header(); ?>
<div class="blog">
<div class="blog-ic">
<div class="blog-content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="blog-single">
<div class="blog-image">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('size-640x320'); ?></a>
<div class="blog-time">
<?php the_time('M'); ?><br>
<span class="time1"><?php the_time('d'); ?></span>
</div>
</div>
<a href="<?php the_permalink(); ?>" class="blog-title">
<?php echo wp_html_excerpt( get_the_title(), 84 ); ?>
</a>
<div class="blog-desc">
<?php echo wp_html_excerpt( get_the_excerpt(), 120 ); ?>...
<a href="<?php the_permalink(); ?>" class="devami">devamı »</a>
</div>
</div>
<?php endwhile; endif; ?>
<?php
global $wp_query;
$big = 999999999; // need an unlikely integer
echo '<div class="pagination">';
echo paginate_links( array(
'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var('paged') ),
'total' => $wp_query->max_num_pages
) );
echo '</div>';
?>
</div>
<div class="blog-sidebar">
<?php dynamic_sidebar('Blog') ?>
</div>
</div>
</div>
<?php get_footer(); ?>