forked from YaleDHLab/dh-rees
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory-about.php
76 lines (69 loc) · 2.75 KB
/
category-about.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
68
69
70
71
72
73
74
75
76
<?php
/**
* The template for displaying all pages.
*
* 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 may use a
* different template.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package _s
*/
get_header(); ?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<!-- About text column -->
<div class="about-text-column">
<div class="image-stripe about-text-stripe"></div>
<div class="about-text-container">
<?php $query = new WP_Query( array( 'category_name' => 'about-text' ) );
if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="about-text about-text-title">
<?php echo get_post_meta($post->ID, 'about-title', true); ?>
</div>
<div class="about-text about-subtitle">
<?php echo get_post_meta($post->ID, 'about-subtitle', true); ?>
</div>
<div class="about-text about-text-main">
<?php the_content(); ?>
</div>
<?php endwhile; endif; ?>
<?php wp_reset_postdata(); ?>
</div>
</div>
<!-- Team member cards -->
<div class="team-member-cards-container">
<?php $query = new WP_Query( array(
'category_name' => 'team-member',
'meta_key' => 'sort-order',
'orderby' => 'meta_value_num',
'order' => 'ASC' ) );
if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="team-member-card">
<div class="team-member-thumbnail">
<?php the_post_thumbnail('thumbnail'); ?>
</div>
<div class="team-member-text-container">
<div class="team-member-text team-member-name">
<?php echo get_post_meta($post->ID, 'team-member-name', true); ?>
</div>
<div class="team-member-text team-member-position">
<?php echo get_post_meta($post->ID, 'team-member-position', true); ?>
</div>
</div><!-- .team-member-text-container -->
<div class="team-member-hover-stripe"></div>
</div><!-- .team-member-card -->
<?php endwhile; endif; ?>
<?php wp_reset_postdata(); ?>
</div><!-- .team-member-cards-container -->
<!-- Parallelograms -->
<div class="clear-both"></div>
<div class="about-page-parallelograms-container">
<?php get_template_part( 'template-parts/contact-parallelograms', 'none' ); ?>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php
get_footer();