Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $args= array(
- 'meta_key' => 'entry_type',
- 'meta_value' => 'gallery',
- 'paged' => $paged
- );
- query_posts($args);
- ?>
- <?php if (have_posts()) : ?>
- <?php $post = $posts[0]; ?>
- <?php if (is_category()) { ?>
- <h1><?php _e('','html5reset'); ?><?php single_cat_title(); ?></h2>
- <?php } ?>
- <?php while (have_posts()) : the_post(); ?>
- <article <?php post_class() ?>>
- <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
- <p>Date posted: <?php the_time('F j, Y'); ?></p>
- <div class="entry">
- <?php the_content(); ?>
- </div>
- </article>
- <?php endwhile; ?>
- <?php post_navigation(); ?>
- <?php else : ?>
- <h2><?php _e('Nothing Found','html5reset'); ?></h2>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement