plumwd

Media not displaying

Sep 18th, 2012
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.58 KB | None | 0 0
  1. <?php /* If there are no posts to display, such as an empty archive page  */ ?>
  2. <?php
  3.         if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
  4.         elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
  5.         else { $paged = 1; }
  6.        
  7.         query_posts("category_name=success-stories&paged=$paged&order=ASC");
  8.  
  9. ?>
  10.  
  11. <?php if (have_posts()) : ?>
  12.  
  13. <?php /* Display navigation to next/previous pages when applicable  */ ?>
  14.  
  15.     <div id="sort">
  16.     <?php while (have_posts()) : the_post(); ?>
  17.     <div class="box">
  18.         <?php
  19.         if ( has_post_thumbnail() ){ ?>
  20.             <?php $thumbID = get_post_thumbnail_id($post->ID); ?>
  21.             <a href="<?php echo wp_get_attachment_url($thumbID); ?>" rel="gallery" title="<?php the_title(); ?>">        
  22.                 <?php the_post_thumbnail(); ?>
  23.                 <span class="view-large"></span>
  24.             </a>
  25.         <?php } ?>
  26.        
  27.         <h2><?php the_title(); ?></h2>
  28.         <?php the_content(); ?>
  29.         <br/><?php
  30.                $tag = get_the_tags();
  31.                if($tag) {the_tags(); }?>
  32.     </div>
  33.     <?php endwhile; ?>
  34.     </div><!-- #sort -->
  35.  
  36. <?php /* Display navigation to next/previous pages when applicable  */ ?>
  37. <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  38.     <div id="nav-below" class="navigation">
  39.         <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older') ); ?></div>
  40.         <div class="nav-next"><?php previous_posts_link( __( 'Newer <span class="meta-nav">&rarr;</span>') ); ?></div>
  41.     </div><!-- #nav-below -->
  42. <?php endif; ?>
  43. <?php endif; wp_reset_query();?>
Advertisement
Add Comment
Please, Sign In to add comment