Advertisement
Guest User

loop

a guest
Dec 17th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1. <?php global $portfolio_mb; /* this is just needed once */ ?>
  2.  
  3. <div class="mmp-satura-ramis">
  4. <div class="portfolio-list">
  5. <h2>Virtuālās tūres</h2>
  6.  
  7.  
  8. <?php global $wp_query; $args = array_merge( $wp_query->query_vars, array( 'post_type' => 'portfolio', 'project-type' => 'virtuala-ture', ) ); query_posts( $args ); while ( have_posts() ) : the_post(); ?>
  9.    
  10. <span class="portfolio-darbs-pano">
  11.     <a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a>
  12.     <img src="<?php echo $portfolio_mb->the_value('logourl'); ?>" />
  13.     <div class="portfolio-darba-info"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></div>
  14. </span>
  15. <?php endwhile; wp_reset_query(); ?>
  16. </div>
  17.  
  18. <?php if ($wp_query->max_num_pages > 1) : ?>
  19.   <nav id="post-nav" class="pager">
  20.     <div class="previous"><?php next_posts_link(__('&larr; Older posts', 'roots')); ?></div>
  21.     <div class="next"><?php previous_posts_link(__('Newer posts &rarr;', 'roots')); ?></div>
  22.   </nav>
  23. <?php endif; ?>
  24.  
  25. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement