-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-4303.php
67 lines (53 loc) · 2 KB
/
page-4303.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
/**
* The template for displaying the Make Magazine page
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages and that
* other "pages" on your WordPress site will use a different template.
*
* @package WordPress
* @subpackage Twenty_Fifteen
* @since Twenty Fifteen 1.0
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
// Start the loop.
while ( have_posts() ) : the_post();
// Include the page content template.
get_template_part( 'content', 'page' );
// End the loop.
endwhile;
?>
<?php if(function_exists('pf_show_link')){echo pf_show_link();} ?>
<section id="employees">
<?php
// Get Make Magazine files
$args = array(
'post_type' => 'employee',
);
$the_query = new WP_Query( $args ); ?>
<?php if ( $the_query->have_posts() ) : ?>
<!-- pagination here -->
<!-- the loop -->
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="employee">
<?php the_post_thumbnail('employee_imgs'); ?>
<h3><?php the_title(); ?></h3>
<p><i class="fa fa-mobile"></i> <?php echo get_post_meta(get_the_ID(), 'employee_phone_number', true); ?></p>
<p><i class="fa fa-envelope-o"></i> <?php echo get_post_meta(get_the_ID(), 'employee_e-mail', true); ?></p>
<p><i class="fa fa-clock-o"></i> <?php echo strip_tags(get_post_meta(get_the_ID(), 'work_hours', true)); ?></p>
</div>
<?php endwhile; ?>
<!-- end of the loop -->
<!-- pagination here -->
<?php wp_reset_postdata(); ?>
<?php else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
</section>
</main><!-- .site-main -->
</div><!-- .content-area -->
<?php get_footer(); ?>