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 '
'; + the_post_thumbnail(); + 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 '
'; + } ?> +