Created
May 1, 2013 00:28
-
-
Save samsargent/5492927 to your computer and use it in GitHub Desktop.
Wordpress: Draft Coming Soon Teasers on archive pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( is_tax('platform')) { | |
$args = array( | |
'post_type' => 'post', | |
'post_status' => 'draft', | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'platform', | |
'field' => 'slug', | |
'terms' => $term->slug | |
) | |
) | |
); | |
$query = new WP_Query( $args ); | |
if (have_posts()) : ?> | |
<h2> Coming Soon in the <span><?php echo $term->name; ?></span> Module:</h2> | |
<?php while (have_posts()) : the_post(); ?> | |
<?php get_template_part('blogloop', 'draftteaser'); | |
endwhile;endif; | |
wp_reset_postdata(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment