-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
35 lines (31 loc) · 753 Bytes
/
Copy pathsingle.php
File metadata and controls
35 lines (31 loc) · 753 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 get_header(); ?>
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part('components/sub-header');
$post_type = get_post_type();
switch($post_type) {
case 'event':
get_template_part('posts/event-post');
break;
case 'project':
get_template_part('posts/project-post');
break;
case 'publication':
get_template_part('posts/publication-post');
break;
case 'press':
get_template_part('posts/press-post');
break;
case 'mitglieder':
get_template_part('posts/member-post');
break;
default:
get_template_part('posts/default-post');
break;
}
}
}
?>
<?php get_footer(); ?>