-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathindex.php
More file actions
39 lines (38 loc) · 1.47 KB
/
index.php
File metadata and controls
39 lines (38 loc) · 1.47 KB
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
<?php
/*
the file
*/
?>
<?php get_template_part( 'template-parts/custom', 'header' ); ?>
<!--POST-->
<section id="blog" class="blog-area section-padding">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="section-header">
<h2><?php echo get_theme_mod( 'text_blog','Our Blog' ) ?></h2>
<div class="line"><img src="<?php echo get_site_icon_url() ?>" alt=""></div>
<p><?php echo get_theme_mod( 'text_blog_dec','Lorem ipsum dolor sit amet consectetur adipisicing elit' ) ?></p>
</div>
</div>
</div>
<div class="row">
<?php
$blog_args = array(
'post_type' => 'post',
'paged' => get_query_var('paged'),
'cat' => get_query_var('cat'),
);
$blog_posts = new WP_Query($blog_args);
while($blog_posts->have_posts()) {
$blog_posts->the_post();
get_template_part('template-parts/small', 'content');
}
wp_reset_postdata(); ?>
</div>
</div>
<div class="pagination">
<?php echo paginate_links(); ?>
</div>
</section>
<?php get_footer(); ?>