films.php 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <?php /* Template Name: Films */ ?>
  2. <?php get_header(); ?>
  3. <div class="container films">
  4. <div class="row">
  5. <div id="sort">
  6. <div class="more-press">
  7. <a href="../year">Sort Films by Year</a>
  8. </div>
  9. </div>
  10. </div>
  11. <div class="row">
  12. <?php query_posts( array ( 'orderby' => 'title','order' => 'ASC','post_type' => 'Film','posts_per_page' => 53 ) ); ?>
  13. <?php while (have_posts()) : the_post(); ?>
  14. <div class="threecol">
  15. <div class="film">
  16. <a href="<?php the_permalink() ?>" class="rollover" title="<?php the_title();?>"><?php if (class_exists('MultiPostThumbnails') && MultiPostThumbnails::has_post_thumbnail('film', 'secondary-image-2')) : MultiPostThumbnails::the_post_thumbnail('film', 'secondary-image-2'); endif; ?></a>
  17. <h3><a href="<?php the_permalink() ?>" class="rollover" title="<?php the_title();?>"><?php the_title() ?></a></h3>
  18. <p class="date"><?php echo get_the_date('Y'); ?></p>
  19. <div class="slidingbox" id="slidingbox">
  20. <p><?php the_excerpt();?></p>
  21. </div>
  22. </div>
  23. </div>
  24. <?php endwhile; ?>
  25. </div>
  26. </div>
  27. <?php get_footer(); ?>