-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-faq.php
47 lines (33 loc) · 1.04 KB
/
page-faq.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
<?php
/*
Template Name: FAQ Page
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header><!-- .entry-header -->
<div id="post-<?php the_ID(); ?>" <?php post_class('format-aside'); ?>>
<?php the_post() ?>
<div class="entry-content non-event">
<?php the_content(); ?>
<?php $formats = new WP_Query( array(
'tax_query' => array(
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array( 'post-format-aside' ),
'operator' => 'IN',
)
)
));
?>
<?php if( $formats->have_posts() ) : while( $formats->have_posts() ) : $formats->the_post(); ?>
<?php get_template_part( 'content', 'aside' ); ?>
<?php endwhile; ?>
<?php endif; ?>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>