-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvideo-page.php
More file actions
50 lines (47 loc) · 1.52 KB
/
video-page.php
File metadata and controls
50 lines (47 loc) · 1.52 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
<?php
/**
*
* Template Name: Video Page
* Description: A Page Template that adds a sidebar to pages
* @package nbt
*/
defined('ABSPATH') || die('No script kiddies please!');
get_header();
?>
<section id="headline" class="section section-small">
<div class="inner-section">
<div class="container">
<div class="wrapper">
<div class="items vertical">
<?php
$args = array(
'post_type' => 'post',
'posts_per_page' => 5,
'order' => 'ASC',
'orderby' => 'title',
'ignore_sticky_posts' => 1,
'meta_query' => array(
array(
'key' => '_nbt_post',
'value' => 'video',
'compare' => '=',
),
),
);
$query = new WP_Query($args);
if ($query->have_posts()) {
while ($query->have_posts()) {
$query->the_post();
$the_post_id = get_the_ID();
get_template_part('parts/part', 'loop-vertical');
}
}
wp_reset_postdata();
?>
</div>
</div>
</div>
</div>
</section>
<?php
get_footer();