-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-insurance-news.php
52 lines (35 loc) · 1.39 KB
/
page-insurance-news.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
<?php get_header(); ?>
<div class="the-body-content">
<?php get_template_part('banners'); ?>
<div class="container">
<div class="news-flex">
<?php
$args = array(
'post_type' => 'post',
'posts_per_page' => -1,
'category_name' => 'news',
);
$news_articlePosts = new WP_Query($args);
?>
<?php if ($news_articlePosts->have_posts()) : ?>
<?php while ($news_articlePosts->have_posts()) : $news_articlePosts->the_post(); ?>
<div class="news">
<div class="news-holder">
<p class="the-date"><?php echo get_the_date('d/m/Y'); ?></p>
<div class="news-text-content">
<h5><?php the_title(); ?></h5>
<p class="sumarry"><?php the_excerpt(); ?></p>
</div>
<div class="the-readmore">
<a href="<?php the_permalink(); ?>">Read More</a>
</div>
</div>
</div>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php else : ?>
<?php endif; ?>
</div>
</div>
</div>
<?php get_footer(); ?>