-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmpl-classes.php
More file actions
35 lines (34 loc) · 993 Bytes
/
tmpl-classes.php
File metadata and controls
35 lines (34 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Template Name: Classes List Template
*/
?>
<?php while (have_posts()) : the_post(); ?>
<?php //get_template_part('templates/page', 'header'); ?>
<?php //get_template_part('templates/content', 'page'); ?>
<?php endwhile; ?>
<?php
$args = array(
'post_type' => 'class',
'order' => 'ASC',
'orderby' => 'menu_order',
'posts_per_page' => -1
);
$the_classes = new WP_Query( $args );
?>
<div class="ps ps--narrow">
<header class="heading">
<div class="row column">
<h2 class="heading__title"><?= __('Jóga óráink','bikram') ?></h2>
<hr>
<div class="heading__lead"><?php the_excerpt(); ?></div>
</div>
</header>
<div class="row large-up-2">
<?php while ($the_classes->have_posts()) : $the_classes->the_post(); ?>
<div class="column">
<?php get_template_part('templates/content', get_post_type() != 'post' ? get_post_type() : get_post_format()); ?>
</div>
<?php endwhile; ?>
</div>
</div>