Advertisement
CreativJam

New Folio Template

Oct 18th, 2013
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 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.  
  11.  
  12. <?php
  13. $col = 0;
  14. while (have_posts()) : the_post();
  15. ?>
  16. <div class="col-sm-4" id="post-'<?php the_ID(); ?>'">
  17. <?php get_template_part('templates/folio', get_post_format()); ?>
  18. </div>
  19. <?php
  20. $col++;
  21. if ($col == 3){
  22. echo '<div class="clear"></div>';
  23. $col = 0;
  24. }
  25. ?>
  26.  
  27. <?php
  28. endwhile;
  29. ?>
  30.  
  31. <div class="clear"></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