Guest User

Untitled

a guest
May 25th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="centercol" class="grid_10">
  4.  
  5. <?php if (have_posts()) : ?>
  6.  
  7. <div class="box">
  8.  
  9. <h2><?php the_title(); ?></h2>
  10.  
  11. <?php while (have_posts()) : the_post(); ?>
  12.  
  13. <div class="post" id="post-<?php the_ID(); ?>">
  14.  
  15. <div class="entry">
  16. <?php the_content('<span class="continue">Continue Reading</span>'); ?>
  17. </div>
  18.  
  19. </div><!--/post-->
  20.  
  21. <?php endwhile; ?>
  22.  
  23. </div>
  24.  
  25. <?php endif; ?>
  26.  
  27. ##
  28.  
  29. <?php print the_ID() ?>
  30.  
  31. <?php if (the_ID == 6) { ?>
  32.  
  33. <?php
  34. include(TEMPLATEPATH . '/includes/version.php');
  35.  
  36. $page = (get_query_var('paged')) ? get_queSry_var('paged') : 1;
  37. $the_query = new WP_Query('cat=-' . $ex_vid . ',-' . $ex_aside . '&orderby=post_date&order=desc&paged=' . $page);
  38. $wp_query->in_the_loop = true; // Need this for tags to work
  39. while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
  40. ?>
  41.  
  42. <div class="box">
  43.  
  44. <h2><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  45.  
  46. <div class="date-comments">
  47. <p class="fl"><?php the_time('D, M j, Y'); ?></p>
  48. <p><span class="fr comments"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></span></p>
  49. </div>
  50.  
  51. <?php if ( get_post_meta($post->ID,'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->
  52.  
  53. <a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>"><img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=125&w=125&zc=1&q=95" alt="<?php the_title(); ?>" class="fl" style="margin-top:5px;" /></a>
  54.  
  55. <?php } ?>
  56.  
  57. <div class="entry">
  58. <?php the_content(); ?>
  59. </div>
  60.  
  61. <span class="continue"><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>">Continue reading...</a></span>
  62.  
  63. </div>
  64.  
  65. <?php endwhile; ?>
  66.  
  67. <span class="fl continue-archives-alt"><?php next_posts_link('Older Entries') ?></span>
  68. <span class="fr continue-archives"><?php previous_posts_link('Newer Entries') ?></span>
  69.  
  70.  
  71. <?php } ?>
  72.  
  73. </div><!--/grid_10-->
  74.  
  75. <?php get_sidebar(); ?>
  76.  
  77. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment