Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php global $portfolio_mb; /* this is just needed once */ ?>
- <div class="mmp-satura-ramis">
- <div class="portfolio-list">
- <h2>Virtuālās tūres</h2>
- <?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(); ?>
- <span class="portfolio-darbs-pano">
- <a href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a>
- <img src="<?php echo $portfolio_mb->the_value('logourl'); ?>" />
- <div class="portfolio-darba-info"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></div>
- </span>
- <?php endwhile; wp_reset_query(); ?>
- </div>
- <?php if ($wp_query->max_num_pages > 1) : ?>
- <nav id="post-nav" class="pager">
- <div class="previous"><?php next_posts_link(__('← Older posts', 'roots')); ?></div>
- <div class="next"><?php previous_posts_link(__('Newer posts →', 'roots')); ?></div>
- </nav>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement