-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.php
18 lines (17 loc) · 997 Bytes
/
image.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php get_header(); ?>
<div class="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1 class="post-title"><?php the_title(); ?> <?php edit_post_link(__('Edit this entry', 'super_light'), '', ''); ?></h1>
<p><?php printf( __( '<a href="%1$s">%2$s</a>', 'super_light' ), get_permalink( $post->post_parent ), get_the_title( $post->post_parent ));?></p>
<p><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
<?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?>
<?php wp_link_pages(array('before' => '<p><strong>'.__('Pages', 'super_light').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
<p class="pagination">
<span class="alignleft"><?php previous_image_link() ?></span>
<span class="alignright"><?php next_image_link() ?></span>
</p>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>