Advertisement
CreativJam

Template

Oct 18th, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Portfolio Template
  4. */
  5. ?>
  6. <img class="img-responsive align-center featured" src="<?php echo get_theme_root_uri(); ?>/proman/assets/img/code011.jpg" alt="Folio Feature Image">
  7.  
  8.  
  9. <?php query_posts(array( 'post_type' => 'portfolio', 'showposts' => 6,'paged' => $paged )); ?>
  10. <div class="row">
  11.  
  12. <?php
  13. $col = 0;
  14. while (have_posts()) : the_post();
  15. ?>
  16.  
  17. <div class="col-sm-4">
  18. <?php get_template_part('templates/folio', get_post_format()); ?>
  19. </div>
  20. <?php
  21. $col++;
  22. if ($col === 3){
  23. echo '<div class="clear"></div>';
  24. $col = 0;
  25. }
  26. ?>
  27. <?php
  28. endwhile;
  29. ?>
  30.  
  31. </div>
  32. <div class="navigation">
  33. <p>
  34. <?php posts_nav_link(); ?>
  35. </p>
  36. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement