-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingle-staff-member.php
36 lines (34 loc) · 1.21 KB
/
single-staff-member.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
<?php get_header(); ?>
<div class="col-sm-12 col-md-10 col-md-offset-1 speakers">
<?php
$custom = get_post_custom();
$name = get_the_title();
$name_slug = basename(get_permalink());
$title = $custom["_staff_member_title"][0];
$url = $custom["_staff_member_fb"][0];
/* $position = $custom["_staff_member_position"][0]; */
$bio = $custom["_staff_member_bio"][0];
if(has_post_thumbnail()){
$photo_url = wp_get_attachment_url( get_post_thumbnail_id() );
$photo = '<img class="staff-member-photo" src="'.$photo_url.'" alt = "'.$title.'">';
}
?>
<div class="staff-member-listing">
<div class="staff-member big-member even">
<a href="http://<?php echo $url; ?>" target="_blank">
<div class="ch-item" style="background-image: url('<?php echo $photo_url; ?>');">
<div class="ch-info">
<p><?php echo $url; ?></p>
</div>
</div>
</a>
<div class="staff-member-info-wrap">
<h1><?php echo $name ?></h1>
<h3><?php /* echo $position */ ?></h3>
<p><?php echo $bio; ?></p>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<?php get_footer(); ?>