Skip to content

Instantly share code, notes, and snippets.

@smeyer
Created July 27, 2012 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smeyer/3188537 to your computer and use it in GitHub Desktop.
Save smeyer/3188537 to your computer and use it in GitHub Desktop.
template-partners.php
<?php
/*
* Template Name: Partners
* Description: Partners Feed Page
*/
get_header(); ?>
<div id="container" class="clear">
<div id="content">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<?php $cont = get_the_content(); if ($cont) { echo $cont; ?><hr /><?php } ?>
<?php endwhile; ?>
<?php if (function_exists('env_display_posts_from_type')) { env_display_posts_from_type('partners', -1, 'menu_order', 'ASC', '_part_info', 'false', 'partners-thumbnail'); } ?>
<?php else: ?>
<h1><?php _e('Sorry, no posts matched your criteria.'); ?></h1>
<?php endif; ?>
</div><!--content-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment