forked from atticoos/YankeeLobster-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-jobs.php
42 lines (36 loc) · 1.13 KB
/
page-jobs.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
<?php
/* Template Name: Jobs */
get_header();
$jobs = get_posts(array('post_type' => 'jobs'));
?>
<section class="jobs archive">
<h1 class="pageTitle"><?php the_title(); ?></h1>
<div class="byline">
<?php the_content(); ?>
</div>
<?php if (empty($jobs)): ?>
<p>
There are currently no job openings.
</p>
<?php else: ?>
<div class="job-opening heading row">
<h4 class="col-xs-3 title">Title</h4>
<h4 class="col-xs-3 department">Department</h4>
<h4 class="col-xs-6 description">Description</h4>
</div>
<?php foreach ($jobs as $post): setup_postdata($post); ?>
<div class="job-opening listing row">
<div class="col-xs-3 title">
<a href="<?php the_permalink(); ?>" title="Job opening: <?php the_title(); ?>"><?php the_title(); ?></a>
</div>
<div class="col-xs-3 department">
<?php echo get_field('department'); ?>
</div>
<div class="col-xs-6 description">
<?php echo get_the_excerpt(); ?>
</div>
</div>
<?php endforeach; wp_reset_postdata(); ?>
<?php endif; ?>
</section>
<?php get_footer(); ?>