-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
61 lines (39 loc) · 1.67 KB
/
front-page.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
<?php
// front-page.php
get_header(); ?>
<!-- site-content -->
<div class="site-content clearfix">
<h3>Custom HTML Here!</h3>
<?php if (have_posts()) :
while (have_posts()) : the_post();
the_content();
endwhile;
else:
echo '<p>No content found</p>';
endif; ?>
<!-- home-columns -->
<div class="home-columns clearfix">
<!-- one-half -->
<div class="one-half">
<h2>Latest Opinion</h2>
<?php // args
$args = array(
'query' => 'cat=43&posts_per_page=3'
);
get_template_part('content', 'latest', $args); ?>
<span class="horiz-center"><a href="<?php echo get_category_link(43); ?>" class="btn-a">View all Opinion Posts</a></span>
</div><!-- /one-half -->
<!-- one-half -->
<div class="one-half last">
<h2>Latest News</h2>
<?php // args
$args = array(
'query' => 'cat=9&posts_per_page=3'
);
get_template_part('content', 'latest', $args); ?>
<span class="horiz-center"><a href="<?php echo get_category_link(9); ?>" class="btn-a">View all News Posts</a></span>
</div><!-- /one-half -->
</div><!-- /home-columns -->
</div><!-- /site-content -->
<?php get_footer();
?>