Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 46 lines (31 sloc) 1.52 KB
<?php get_header(); ?>
<div id="content" class="clearfix">
<div id="main" class="clearfix">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
<h1 class="h2"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
<section class="post_content clearfix">
<p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
<p class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></p>
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
<nav class="prev-next-links">
<ul class="clearfix">
<li><?php previous_image_link() ?></li>
<li><?php next_image_link() ?></li>
<?php endwhile; else: ?>
<div class="help">
<p>Sorry, no attachments matched your criteria.</p>
<?php endif; ?>
</div> <!-- end #main -->
<?php get_sidebar(); // sidebar 1 ?>
</div> <!-- end #content -->
<?php get_footer(); ?>
Jump to Line
Something went wrong with that request. Please try again.