-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopportunities.php
More file actions
executable file
·54 lines (46 loc) · 2.22 KB
/
Copy pathopportunities.php
File metadata and controls
executable file
·54 lines (46 loc) · 2.22 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
<?php
/*
Template Name: Opportunities
*/
?>
<?php include("header.php"); ?>
<div class="wrapper">
<div class="g3">
<h2 class="vision"><?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($post=147, 'opportunities_title', true); ?> <span class="icon">$</span></h2>
<p class="headline"><?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($post=92, 'opportunities-tease', true); ?></p>
</div>
<div class="cf"></div>
<h2 id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_title(); ?></a></h2>
<?php query_posts('post_type=opportunities&posts_per_page=-1');
if (have_posts()) : while (have_posts()) : the_post(); $count++; ?>
<div class="g1">
<a href="<?php the_permalink() ?>">
<?php echo the_post_thumbnail('full');?>
<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_title(); ?></h3>
<h4><?php echo get_post_meta($post->ID, 'location-specifics', true);?></h4></a>
<?php
global $more;
$more = 0;
the_excerpt();
echo '</div></a>';
if ( 0 == $count%3 ) {
echo '<div class="cf"></div>';
}
endwhile; endif; //ending the loop
if ( 0 != $count%3 ) {
echo '<div class="cf"></div>';
}
wp_reset_query();
?>
<div class="g3">
<a href="<?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($post=120, 'eventbrite_url', true); ?>" target="_blank">
<div class="reg-button">
<?php global $wp_query; $postid = $wp_query->post->ID; echo get_post_meta($post=120, 'register_now_text', true); ?> <span class="icon">-</span>
</div></a>
</div>
</div>
<!-- end of wrapper -->
<?php include("footer.php"); ?>