-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-professor.php
More file actions
58 lines (34 loc) · 1.02 KB
/
single-professor.php
File metadata and controls
58 lines (34 loc) · 1.02 KB
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
<?php
get_header();
while(have_posts()) {
the_post();
pageBanner();
?>
<div class="container container--narrow page-section">
<div class="generic-content">
<div class="row group">
<div class="one-third">
<?php the_post_thumbnail('professorPortrait'); ?>
</div>
<div class="two-thirds">
<?php the_content(); ?>
</div>
</div>
</div>
<?php
$relatedPrograms = get_field('related_program');
if ($relatedPrograms) {
echo '<hr class="section-break">';
echo '<h2 class="headline headline--medium">Subject(s) Taught</h2>';
echo '<ul class="link-list min-list">';
foreach($relatedPrograms as $program) { ?>
<li><a href="<?php echo get_the_permalink($program); ?>"><?php echo get_the_title($program); ?></a></li>
<?php }
echo '</ul>';
}
?>
</div>
<?php
}
get_footer();
?>