Advertisement
Guest User

Archive

a guest
Feb 20th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <?php
  2. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  3. $args= array(
  4. 'meta_key' => 'entry_type',
  5. 'meta_value' => 'gallery',
  6. 'paged' => $paged
  7. );
  8. query_posts($args);
  9. ?>
  10.  
  11. <?php if (have_posts()) : ?>
  12.  
  13. <?php $post = $posts[0]; ?>
  14.  
  15. <?php if (is_category()) { ?>
  16. <h1><?php _e('','html5reset'); ?><?php single_cat_title(); ?></h2>
  17. <?php } ?>
  18.  
  19. <?php while (have_posts()) : the_post(); ?>
  20.  
  21. <article <?php post_class() ?>>
  22.  
  23. <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  24.  
  25. <p>Date posted: <?php the_time('F j, Y'); ?></p>
  26. <div class="entry">
  27. <?php the_content(); ?>
  28. </div>
  29.  
  30. </article>
  31.  
  32. <?php endwhile; ?>
  33.  
  34. <?php post_navigation(); ?>
  35.  
  36. <?php else : ?>
  37.  
  38. <h2><?php _e('Nothing Found','html5reset'); ?></h2>
  39.  
  40. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement