Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php get_sidebar(); ?>
- <div id="main">
- <div class="topstory">
- <?php global $query_string; $wp_query = new WP_Query($query_string .'&showposts=1');
- if ($wp_query->have_posts()) :
- while ($wp_query->have_posts()) : $wp_query->the_post();
- $do_not_duplicate = $post->ID;
- ?>
- <?php if(get_post_meta($post->ID, "newsworthy_image_value", $single = true) != "") { ?><img src="<?php echo get_post_meta($post->ID, "newsworthy_image_value", $single = true); ?>" alt="<?php the_title_attribute(); ?>" /><?php } ?>
- <h1><?php the_title(); ?></h1>
- <?php the_content(); ?>
- <div class="postmeta"><a href="<?php the_permalink(); ?>" class="readmore">Read more...</a><a href="<?php comments_link(); ?>" class="comments">Comments (<?php comments_number('0', '1', '%'); ?>)</a><span class="category">Filed under: <?php the_category(', ') ?></span></div>
- <?php endwhile; endif; ?>
- </div>
- <div id="left">
- <?php
- //endwhile;
- //endif;
- ?>
- <div class="clear"> </div>
- </div>
- <?php if(function_exists('wp_paginate')) {
- wp_paginate();
- } ?>
- <div class="clearboth"> </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement