Skip to content

Instantly share code, notes, and snippets.

@billrobbins
Created February 17, 2014 02:36
Show Gist options
  • Save billrobbins/9043747 to your computer and use it in GitHub Desktop.
Save billrobbins/9043747 to your computer and use it in GitHub Desktop.
<?php
/**
* The file controls the display of our staff archive.
*
* @package Responsive Visual
* @version Since 1.0.0
*/
get_header(); ?>
<div class="wrap">
<?php tha_content_before(); ?>
<?php get_template_part( 'includes/menu' ); ?>
<ul class="staff-list">
<?php tha_content_top(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php tha_entry_before(); ?>
<li class="staff-entry">
<?php tha_entry_top(); ?>
<?php if(get_post_meta($post->ID, "video_embed", $single = true) != ""){ ?>
<div class="video"><?php echo get_post_meta($post->ID, "video_embed", TRUE); ?></div>
<?php } else { ?>
<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_post_thumbnail( 'portrait-small' ); ?></a>
<?php } ?>
<h2 class="title"><?php the_title(); ?></h2>
<?php if(get_post_meta($post->ID, "title", $single = true) != ""){ ?>
<p class="job-title"><?php echo get_post_meta($post->ID, "title", TRUE); ?></p>
<?php } ?>
<?php the_content(); ?>
<?php get_template_part( 'includes/staff-details' ); ?>
<?php tha_entry_bottom(); ?>
</li>
<?php tha_entry_after(); ?>
<?php endwhile; else: ?>
<li><?php _e('Sorry, no staff members matched your criteria.', 'organizedthemes'); ?></li><?php endif; ?>
<?php tha_content_bottom(); ?>
</ul>
<?php get_template_part( 'includes/pagination' ); ?>
</div>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment