Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /* If there are no posts to display, such as an empty archive page */ ?>
- <?php
- if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
- elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
- else { $paged = 1; }
- query_posts("category_name=success-stories&paged=$paged&order=ASC");
- ?>
- <?php if (have_posts()) : ?>
- <?php /* Display navigation to next/previous pages when applicable */ ?>
- <div id="sort">
- <?php while (have_posts()) : the_post(); ?>
- <div class="box">
- <?php
- if ( has_post_thumbnail() ){ ?>
- <?php $thumbID = get_post_thumbnail_id($post->ID); ?>
- <a href="<?php echo wp_get_attachment_url($thumbID); ?>" rel="gallery" title="<?php the_title(); ?>">
- <?php the_post_thumbnail(); ?>
- <span class="view-large"></span>
- </a>
- <?php } ?>
- <h2><?php the_title(); ?></h2>
- <?php the_content(); ?>
- <br/><?php
- $tag = get_the_tags();
- if($tag) {the_tags(); }?>
- </div>
- <?php endwhile; ?>
- </div><!-- #sort -->
- <?php /* Display navigation to next/previous pages when applicable */ ?>
- <?php if ( $wp_query->max_num_pages > 1 ) : ?>
- <div id="nav-below" class="navigation">
- <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older') ); ?></div>
- <div class="nav-next"><?php previous_posts_link( __( 'Newer <span class="meta-nav">→</span>') ); ?></div>
- </div><!-- #nav-below -->
- <?php endif; ?>
- <?php endif; wp_reset_query();?>
Advertisement
Add Comment
Please, Sign In to add comment