From d91ac7d0e6a1ea2fa4f12ad1abed618ca62f09eb Mon Sep 17 00:00:00 2001 From: andrewmbacon Date: Wed, 11 Nov 2015 13:13:43 -0500 Subject: [PATCH] Person Content Template, and person archives. --- archive.php | 20 +++++++++++---- content-person.php | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 5 deletions(-) create mode 100644 content-person.php diff --git a/archive.php b/archive.php index 6ef1cab..0c50129 100755 --- a/archive.php +++ b/archive.php @@ -61,6 +61,12 @@ elseif ( is_tax( 'post_format', 'post-format-chat' ) ) : _e( 'Chats', 'cs' ); + + elseif ( is_tax( 'group') || is_tax('persontag')): + global $wp_query; + $term = $wp_query->get_queried_object(); + $name = $term->name; + echo $name; else : _e( 'Archives', 'cs' ); @@ -81,11 +87,15 @@ diff --git a/content-person.php b/content-person.php new file mode 100644 index 0000000..dbf0e57 --- /dev/null +++ b/content-person.php @@ -0,0 +1,62 @@ + +
> + + '; + echo ''; + echo '
'; + } ?> +
+ '; + the_field('first_name'); + echo ' '; + if (get_field('middle_name')){ + the_field('middle_name'); + echo ' '; + } + the_field('last_name'); + echo ''; + ?> +
+ + + + +
+ '.get_field('title').'

'; + if (strlen(get_field('email')) . 0 ){ + echo '

'.get_field('email').'

'; + } + if (strlen(get_field('phone')) > 0 ){ + echo '

'.get_field('phone').'

'; + } + + ?> + + + + +
+ '', + ) ); + ?> +
+ + '; + echo '
'; + } ?> +