Guest User

Untitled

a guest
Mar 18th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <div class="jumbotron">
  2.  
  3. <?php
  4. $args = array(
  5. 'post_type' => 'portfolio',
  6. 'posts_per_page' => 3
  7. );
  8.  
  9. $portfolio = new WP_Query($args);
  10.  
  11. while($portfolio->have_posts()) : $portfolio->the_post();
  12. ?>
  13. <?php get_template_part('content', get_post_format());?>
  14.  
  15. <?php
  16. endwhile;
  17.  
  18. ?>
  19. </div>
  20. <?php wp_reset_postdata(); ?>
  21.  
  22. <div class="card p-3"> <?php if(has_post_thumbnail()){
  23.  
  24. the_post_thumbnail(array(200,200));
  25. }
  26. ?><a href="<?php esc_url(get_permalink()); ?>"><?php the_title() ?></a>
  27.  
  28. <blockquote class="blockquote mb-0 card-body">
  29. <?php the_content() ?>
  30.  
  31. <small><?php the_category() === null ? : the_category(); ?></small>
  32.  
  33. </blockquote>
Add Comment
Please, Sign In to add comment