forked from slambert/wpfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattachment.php
More file actions
39 lines (25 loc) · 1.16 KB
/
Copy pathattachment.php
File metadata and controls
39 lines (25 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
// calling the header.php
get_header();
?>
<div id="content"><!-- BEGIN CONTENT-->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php
#Print the large version of the attached image
print wp_get_attachment_image($post->ID, 'large'); ?>
<div class="post-bottom-title">
<strong><a href="<?php the_permalink() ?>" title="Permalink for <?php the_title_attribute(); ?>"><?php the_title(); ?></a></strong> | <?php the_time('Y') ?> | <?php the_category(', '); ?> <?php echo get_the_term_list($post->ID, 'medium', '| Media: ', ', ', ''); ?> <?php the_tags('| Tags: ',', ',''); ?>
<?php edit_post_link('edit this', '<br /><br /><span class="edit-link">', '</span>'); ?> <!--USER EDIT LINK-->
</div><!-- .post-bottom-title -->
<div class="prevnext">
<div class="prev"><?php previous_image_link( 0, 'Previous' ); ?></div>
<div class="next"><?php next_image_link( 0, 'Next' ); ?></div>
</div> <!--.prevnext -->
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.', 'wpfolio'); ?></p>
<?php endif; ?>
</div><!-- END CONTENT -->
<?php
// calling footer.php
get_footer();
?>