-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
front-page.php
80 lines (55 loc) · 2.43 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php get_header(); ?>
<?php get_template_part( 'template-parts/home', 'carousel' ); ?>
<div class="w-full container mx-auto pb-5">
<div class="flex flex-col my-5">
<h3 class="text-3xl font-inter text-citybreakteal-500 dark:text-citybreakteal-200 font-semibold"><em>
By continent
</em></h3>
<p class="font-sourcesanspro text-base dark:text-white">
Browse our most popular city break guides. Just pick a continent and away you go.
</p>
</div>
<?php get_template_part( 'template-parts/home', 'continent' ); ?>
<!-- Start of homepage latest articles -->
<div class="flex flex-col my-5">
<h3 class="text-3xl font-inter text-citybreakteal-500 dark:text-citybreakteal-200 font-semibold italic">
<em>Latest articles</em>
</h3>
<p class="font-sourcesanspro text-base dark:text-white">
Browse our most popular city break guides. Just pick a continent and away you go.
</p>
<div class="grid mt-4 md:grid-cols-2 lg:grid-cols-3 gap-5">
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 6
) );
while ($query->have_posts()) : $query->the_post(); ?>
<?php get_template_part( 'template-parts/home', 'latestposts' ); ?>
<?php endwhile; ?>
</div>
</div><!-- End of homepage latest articles -->
</div><!-- End container -->
<?php get_template_part( 'template-parts/common', 'subscribefullwidth' ); ?>
<div class="w-full container mx-auto py-5">
<!-- Start of homepage top trending -->
<div class="flex flex-col my-5 pb-5">
<h3 class="text-3xl font-inter text-citybreakteal-500 dark:text-citybreakteal-200 font-semibold italic">
<em>More articles</em>
</h3>
<p class="font-sourcesanspro text-base dark:text-white">
Continue to read our latest posts.
</p>
<div class="grid mt-4 md:grid-cols-2 lg:grid-cols-3 gap-5">
<?php $query = new WP_Query( array(
'post_type' => 'post',
'posts_per_page' => 6,
'offset' => 6,
) );
while ($query->have_posts()) : $query->the_post(); ?>
<?php get_template_part( 'template-parts/home', 'latestposts' ); ?>
<?php endwhile; ?>
</div>
</div><!-- End of homepage latest articles 2 -->
</div><!-- End container -->
<?php
get_footer();