Advertisement
Guest User

Untitled

a guest
May 25th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $args = array('post_type' => 'students', 'category_name' => $_GET['graduates']);
  2. $loop = new WP_Query($args );
  3. echo '<div class="block-content" style="position: relative; float: left">';
  4. while ( $loop->have_posts() ) : $loop->the_post();
  5.  
  6. echo '<article class="student-post">';
  7. the_post_thumbnail();
  8. echo '<div class="student-name">';
  9. the_title( '<h1 class="">', '</h1>' );
  10. echo '</div>';
  11. echo '<div class="student-specialist">';
  12. the_excerpt();
  13. echo '</div>';
  14. echo '<div class="student-content">';
  15. the_content();
  16. echo '</div>';
  17. echo '</article>';
  18.  
  19. endwhile;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement