Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- query_posts ( array( 'post_type' => 'ait-dir-items' , 'category__and' => array(6,32), 'posts_per_page' => 12, 'orderby' => 'title', 'order' => 'DESC' ) );
- if ( have_posts() ) : while ( have_posts() ) : the_post();
- ?>
- <!-- article -->
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <!-- post thumbnail -->
- <?php if ( has_post_thumbnail()) : ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
- <?php the_post_thumbnail(); ?>
- </a>
- <?php endif; ?>
- <!-- /post thumbnail -->
- <!-- post title -->
- <h1>
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
- </h1>
- <!-- /post title -->
- <span class="date"><?php the_time('F j, Y'); ?> <?php the_time('g:i a'); ?></span>
- <?php the_excerpt(); ?>
- </article>
- <!-- /article -->
- <?php endwhile; ?>
- <?php else: ?>
- <!-- article -->
- <article>
- <h1><?php _e( 'Sorry, nothing to display.'); ?></h1>
- </article>
- <!-- /article -->
- <?php endif; wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement