Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Portfolio Template
- */
- ?>
- <img class="img-responsive align-center featured" src="<?php echo get_theme_root_uri(); ?>/proman/assets/img/code011.jpg" alt="Folio Feature Image">
- <?php query_posts(array( 'post_type' => 'portfolio', 'showposts' => 6,'paged' => $paged )); ?>
- <?php
- $col = 0;
- while (have_posts()) : the_post();
- ?>
- <div class="col-sm-4" id="post-'<?php the_ID(); ?>'">
- <?php get_template_part('templates/folio', get_post_format()); ?>
- </div>
- <?php
- $col++;
- if ($col == 3){
- echo '<div class="clear"></div>';
- $col = 0;
- }
- ?>
- <?php
- endwhile;
- ?>
- <div class="clear"></div>
- <div class="navigation">
- <p>
- <?php posts_nav_link(); ?>
- </p>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement