Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $args = array('post_type' => 'students', 'category_name' => $_GET['graduates']);
- $loop = new WP_Query($args );
- echo '<div class="block-content" style="position: relative; float: left">';
- while ( $loop->have_posts() ) : $loop->the_post();
- echo '<article class="student-post">';
- the_post_thumbnail();
- echo '<div class="student-name">';
- the_title( '<h1 class="">', '</h1>' );
- echo '</div>';
- echo '<div class="student-specialist">';
- the_excerpt();
- echo '</div>';
- echo '<div class="student-content">';
- the_content();
- echo '</div>';
- echo '</article>';
- endwhile;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement