forked from mindctrl/alienship
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-status-post-format.php
executable file
·42 lines (36 loc) · 1.08 KB
/
page-status-post-format.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
<?php
/**
* Template Name: Status Posts
* The template is for displaying posts with the Status post format.
*
* @package Alien Ship
* @subpackage Templates
* @since .93
*/
get_header(); ?>
<!-- Main -->
<?php do_action( 'alienship_content_before' ); ?>
<div class="row-fluid">
<div id="content" class="<?php echo apply_filters( 'alienship_content_container_class', 'span9' ); ?>">
<?php
$status_posts = get_posts( array(
'tax_query' => array(
array(
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array( 'post-format-status' ),
'operator' => 'IN'
)
)
) );
global $post;
foreach( (array) $status_posts as $post ) {
setup_postdata( $post );
get_template_part( '/inc/parts/content', 'status' );
// comments_template( '', true );
} ?>
<?php do_action( 'alienship_content_after' ); ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
</div><!-- .row-fluid -->
<?php get_footer(); ?>