-
Notifications
You must be signed in to change notification settings - Fork 0
/
featured-books.php
44 lines (36 loc) · 993 Bytes
/
featured-books.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
<?php
/**
* Template Name: Featured Books
*/
?>
<?php get_header(); ?>
<!-- s-content
================================================== -->
<section class="s-content">
<div class="row masonry-wrap">
<div class="masonry">
<div class="grid-sizer"></div>
<?php
$arguments = array(
'post_type' => 'book',
'meta_key' => 'is_featured',
'meta_value' => true,
'post_per_page' => 3,
);
$books = NEW WP_Query($arguments);
while($books->have_posts()){
$books->the_post();
get_template_part("template-parts/post-formats/post",get_post_format());
}
?>
</div> <!-- end masonry -->
</div> <!-- end masonry-wrap -->
<div class="row">
<div class="col-full">
<nav class="pgn">
<?php philosophy_pagination(); ?>
</nav>
</div>
</div>
</section> <!-- s-content -->
<?php get_footer(); ?>