Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: students
- */
- get_header(); ?>
- <div class="container">
- <div class="row row-offcanvas row-offcanvas-right">
- <div class="col-xs-12 col-sm-9">
- <div class="row">
- <h2>Les étudiants</h2>
- <?php
- $args = array(
- 'post_type' => 'students',
- 'posts_per_page' => 100,
- 'order' => 'ASC' // ou DESC
- );
- $event_query = new WP_Query($args);
- if($event_query->have_posts()) {
- while ($event_query->have_posts()) {
- $event_query->the_post(); ?>
- <div class="col-md-4">
- <div class="bs-callout bs-callout-info">
- <a class="students" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </div>
- </div>
- <?php
- }
- }
- ?>
- </div>
- </div>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement