-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-opportunities.php
67 lines (56 loc) · 2.5 KB
/
page-opportunities.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
62
63
64
65
66
67
<?php get_header(); ?>
<section id="page">
<div class="container">
<div id="content" class="site-content" role="main">
<?php /* The loop */ ?>
<?php while (have_posts()) {
the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php edit_post_link(__('Edit', ZEETEXTDOMAIN), '<small class="edit-link pull-right ">', '</small><div class="clearfix"></div>'); ?>
<?php if (has_post_thumbnail() && ! post_password_required()) { ?>
<div class="entry-thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<?php } ?>
<div class="entry-content">
<?php the_content(); ?>
<?php zee_link_pages(); ?>
<?php
$args = array( 'cat' => 11,
'order' => 'asc',
'meta_query' => array(
array(
'key' => 'opportunity_expired',
//'value' => 'true',
'compare' => 'NOT EXISTS'
)
)
);
//$my_query = new WP_Query( 'cat=11'.'&orderby=date&order=dec' );
$my_query = new WP_Query($args);
echo '<div class="well">';
//var_dump($my_query);
if ($my_query->have_posts()) {
echo "<p><h3>We currently have the following open vacancies:</h3></p>";
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<div class="row">
<div class="col-sm-11 col-sm-offset-1">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<small>Posted <?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
</div>
</div>
<?php
endwhile;
} else {
echo "<h3>Sorry no vacancies at present...</h3>";
}
echo '</div>'; ?>
</div>
</article>
<?php comments_page(); ?>
<?php
} ?>
</div><!--/#content-->
</div>
</section><!--/#page-->
<?php get_footer();