-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-blog.php
More file actions
85 lines (54 loc) · 1.64 KB
/
page-blog.php
File metadata and controls
85 lines (54 loc) · 1.64 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
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
74
75
76
77
78
79
80
81
82
83
84
85
<?php
/**
* Template Name: Blog List Page
*
* @package Isings_Culligan
*/
get_header();
?>
<div class="page-content-wrapper container">
<div class="row">
<aside class="col-xl-4 order-xl-1 order-12">
<?php get_sidebar(); ?>
</aside>
<div id="primary" class="content-area col-xl-8 order-xl-2 order-1">
<main id="main" class="site-main">
<h1>Water News</h1>
<div class="row">
<?php
$ic_blog_args = array(
'order' => 'DESC',
'posts_per_page' => '9',
);
$ic_blog = new WP_Query( $ic_blog_args );
if ( $ic_blog->have_posts() ) {
while ( $ic_blog->have_posts() ) {
$ic_blog->the_post();
?>
<div class="col-lg-4 col-md-4 col-sm-12 col-xs-12 ic-blog-column">
<a href="<?php the_permalink(); ?>" class="ic-blog-card">
<div class="ic-home-blog-img-wrapper">
<?php the_post_thumbnail('medium'); ?>
</div>
<div class="ic-home-blog-copy-card">
<h3><?php the_title(); ?></h3>
<?php the_excerpt(''); ?>
<a href="<?php the_permalink(); ?>" class="btn ic-button">Read More</a>
</div>
</a>
</div>
<?php
} // endwhile
} else {
echo '<p>No posts have been found.</p>';
};
wp_reset_postdata();
?>
</div>
</main><!-- #main -->
</div><!-- #primary -->
</div>
</div>
<?php get_template_part('template-parts/section-solution'); ?>
<?php
get_footer();