Advertisement
SchuminWeb

single-photo_features.php 07-03-2012

Jul 3rd, 2012
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php get_template_part('sidebar-archives'); ?>
  4.  
  5. <div id="content">
  6.  
  7. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  8.  
  9. <h2 class="centerparagraph">Photo Feature Archives</h2>
  10.  
  11. <p class="centerparagraph"><a href="http://files.schuminweb.com/archives/photo-features/full-size/<?php echo get_post_meta($post->ID, "photofeature_filename", true); ?>.jpg" rel="lightbox[<?php the_ID(); ?>]" title="<?php the_content(); ?>Photographed <?php echo get_post_meta($post->ID, "photofeature_date_photographed", true); ?>"><IMG SRC="http://files.schuminweb.com/archives/photo-features/feature-size/<?php echo get_post_meta($post->ID, "photofeature_filename", true); ?>.jpg" /></a></p>
  12.  
  13. <span class="largetextinline"><span class="centerparagraph"><?php the_content(); ?></span></span>
  14.  
  15. <HR />
  16.  
  17. <P><B>Date photographed:</B> <?php echo get_post_meta($post->ID, "photofeature_date_photographed", true); ?></P>
  18.  
  19. <P><B>Date featured:</B> <?php the_time('F j, Y'); ?></P>
  20.  
  21. <?php
  22. $var = get_post_meta($post->ID, 'photofeature_notes', true);
  23. if ($var == '')
  24. {
  25. echo "";
  26. } else {
  27. echo "<p><b>Notes:</b> " . $var . "</p>";
  28. } ?>
  29.  
  30.  
  31. <HR />
  32.  
  33. <?php comments_template(); // Get wp-comments.php template ?>
  34.  
  35. <?php endwhile; else: ?>
  36.  
  37. <h2>Woops...</h2>
  38.  
  39. <p>Sorry, no posts we're found.</p>
  40.  
  41. <?php endif; ?>
  42.  
  43. <p align="center"><?php posts_nav_link(); ?></p>
  44.  
  45. </div>
  46.  
  47. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement