-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage-contacts.php
26 lines (26 loc) · 1.01 KB
/
page-contacts.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
<?php
/*
Template Name: Contacts
*/
?>
<?php get_template_parts( array( 'parts/shared/html-header', 'parts/shared/header' ) ); ?>
<article class="contactsContent clearfix">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<section class="contactInfo">
<?php the_content(); ?>
</section>
<?php endwhile; ?>
<?php query_posts('category_name=contact_us&orderby=title&order=asc&posts_per_page=-1');?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<section class="member">
<?php $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large');?>
<img class="memberPhoto" src="<?php echo $large_image_url[0];?>"/>
<h3 class="memberName"><?php the_title(); ?></h3>
<div class="memberEmail"><?php the_excerpt();?></div>
<section class="memberDetail">
<?php the_content(); ?>
</section>
</section>
<?php endwhile; ?>
</article>
<?php get_template_parts( array( 'parts/shared/footer','parts/shared/html-footer' ) ); ?>