Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="row test margin_top_45"><!-- FEATURED START -->
- <div class="col_3">
- <?php
- $wp_query = new WP_Query(array('showposts' => 3, 'orderby'=> 'rand', 'post_type' => array('actors', 'sound', 'operators')));
- while( have_posts() ) : the_post(); ?>
- <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
- <?php if ( has_post_thumbnail() ) {
- the_post_thumbnail('thumbnail');
- } else { ?>
- <img src="<?php bloginfo('template_directory'); ?>/img/fallback_image.jpg" alt="<?php the_title(); ?>" />
- <?php } ?>
- <?php endwhile; ?>
- </div>
- <div class="col_3">
- <?php
- $wp_query = new WP_Query(array('showposts' => 3, 'orderby'=> 'rand', 'post_type' => array('directors', 'authors', 'artists')));
- while( have_posts() ) : the_post(); ?>
- <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
- <?php if ( has_post_thumbnail() ) {
- the_post_thumbnail('thumbnail');
- } else { ?>
- <img src="<?php bloginfo('template_directory'); ?>/img/fallback_image.jpg" alt="<?php the_title(); ?>" />
- <?php } ?>
- <?php endwhile; ?>
- </div>
- <div class="col_3 last">
- <?php
- $wp_query = new WP_Query(array('showposts' => 3, 'orderby'=> 'rand', 'post_type' => array('theatres', 'events', 'designers')));
- while( have_posts() ) : the_post(); ?>
- <a href="<?php the_permalink() ?>" rel="bookmark">
- <?php if ( has_post_thumbnail() ) {
- the_post_thumbnail('thumbnail');
- } else { ?>
- <img src="<?php bloginfo('template_directory'); ?>/img/fallback_image.jpg" alt="<?php the_title(); ?>" />
- <?php } ?>
- </a>
- <?php endwhile; ?>
- </div>
- </div>
- </div><!-- CONTENT END -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement