-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-sessions.php
61 lines (55 loc) · 1.5 KB
/
page-sessions.php
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* Template Name: Sessions
*
* @package Urban_Rights
*/
get_header(); ?>
<div id="primary" class="row">
<main id="main" class="col-sm-12" role="main">
<?php // header
while ( have_posts() ) : the_post();
$page_desc = get_the_excerpt();
$page_content = get_the_content();
$page_title = get_the_title();
endwhile;
wp_reset_postdata(); ?>
<div class="ur-2cols section-space">
<?php echo apply_filters('the_content',$page_desc); ?>
</div>
<div class="row main-space">
<div class="col-md-6">
<header class="section-space">
<h1 class="archive-tit"><?php echo $page_title ?></h1>
<div class="archive-tit">Dienstags / Tuesday 19h00</div>
</header>
<div class="media-list">
<?php /* Archive Loop */
$pt = "sessions";
$args = array(
'post_type' => $pt,
'nopaging' => 'true',
'meta_key' => 'session-date',
'order' => 'ASC',
'orderby' => 'menu_order_num'
);
$archive = new WP_Query( $args );
if ( $archive->have_posts() ) : ?>
<?php //$count = 0;
//$tablet_count = 0;
while ( $archive->have_posts() ) {
$archive->the_post();
get_template_part( 'template-parts/content', $pt );
}
wp_reset_postdata(); ?>
<?php endif; ?>
</div><!-- .media-list -->
</div><!-- .col-md-6 -->
<div class="col-md-6 page-content">
<?php echo apply_filters('the_content',$page_content); ?>
</div><!-- .col-md-6 -->
</div><!-- .row -->
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();