Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (71 sloc) 3.16 KB
<?php
/*
Template Name: Dean's Office Staff List
*/
get_header(); ?>
<?php if (is_category()) { $posts = query_posts($query_string . '&meta_key=deans-office-order&orderby=meta_value'); } ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="home-interior">
<div class="row" id="row1">
<div class="page-title clear">
<h1><?php the_title(); ?></h1>
</div>
<div class="interior-hero clear">
<?php the_post_thumbnail(); ?>
</div>
<div class="no-hero"></div>
<div class="span12"><p>The College of Liberal Arts and Sciences Dean’s Suite is located on the fourth floor of the Austin Building, rooms 401-411.</p></div>
<div class="span12 no-marg">
<h3 class="nudge-right">Deans</h3>
<?php
$args=array(
'post_type' => 'deans_office_staff',
'post_status' => 'publish',
'posts_per_page' => -1,
'caller_get_posts'=> 1,
'meta_key' => 'deans-office-order',
'orderby' => 'meta_value_num',
'order' => 'ASC'
);
$my_query = null;
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post();
$page_id = get_the_ID();
$title = get_post_meta($page_id, 'deans-office-title', true);
$email = get_post_meta($page_id, 'deans-office-email', true);
$phone = get_post_meta($page_id, 'deans-office-phone', true);
$website = get_post_meta($page_id, 'deans-office-deans-blog', true);
$content = get_post($page_id);
$profile_image = wp_get_attachment_image_src( get_post_thumbnail_id( $page_id ), 'thumbnail' );
$src = $profile_image[0];
echo '<div class="row no-marg clear">';
echo '<div class="span5">';
echo '<ul class="new-faculty-ul">';
echo '<li>'.'<img src="'.$src.'" class="new-faculty-image"/>'. '</li>';
echo '<li class="new-faculty-name">'.get_the_title().'</li>';
echo '<li class="new-faculty-title">'.$title . '</li>';
echo '<li class="new-faculty-email">'.'<strong>Phone:</strong>&nbsp;'.$phone . '</li>';
echo '<li class="new-faculty-email">'.'<strong>Email:</strong>&nbsp;'.'<a href="mailto:'.$email.'">'.$email.'</a>'. '</li>';
echo '<li class="deans-office-website">'.$website.'</a>'. '</li>';
echo '</ul>';
echo '</div>';
echo '<div class="span6">';
echo $content->post_content;
echo '</div>';
echo '</div>';
echo '<hr class="new-faculty-hr" />';
endwhile;
}
?>
</div>
<?php endwhile; endif; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="row" id="row2">
<div class="span12">
<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
</div>
</div>
<?php endwhile; endif; ?>
</div></div>
<?php get_footer(); ?>
You can’t perform that action at this time.