Skip to content
This repository has been archived by the owner. It is now read-only.
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
98 lines (67 sloc) 2.75 KB
Template Name: Endowed Chairs List
get_header(); ?>
<?php if (is_category()) { $posts = query_posts($query_string . '&meta_key=endowed-chairs-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 class="interior-hero clear">
<?php the_post_thumbnail(); ?>
<div class="no-hero"></div>
<div class="span12 no-marg">
'post_type' => 'endowed_chairs',
'post_status' => 'publish',
'posts_per_page' => -1,
'caller_get_posts'=> 1,
'meta_key' => 'endowed-chairs-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, 'endowed-chairs-department', true);
$distinguished = get_post_meta($page_id, 'endowed-chairs-distinguished', true);
$name = get_post_meta($page_id, 'endowed-chairs-name', 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="deans-office-website">'.'<strong>'.$name.'</strong>'. '</li>';
echo '<li class="new-faculty-title">'.$title . '</li>';
echo '<li class="deans-office-website">'.$distinguished . '</li>';
echo '</ul>';
echo '</div>';
echo '<div class="span6">';
echo $content->post_content ;
echo '</div>';
echo '</div>';
echo '<hr class="new-faculty-hr" />';
<?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>'); ?>
<?php endwhile; endif; ?>
<?php get_footer(); ?>
You can’t perform that action at this time.