I am trying to make use of the Single template for single posts ( I have a custom one). But for some reason my posts get overridden instead of displaying new data.
This is the setup I have right now
<div class="details">
<?php global $post;
$category_id=get_the_category($post->ID);
$announcements = new WP_Query();
$announcements->query('showposts=1&cat=$category_id');
while ( $announcements->have_posts() ) : $announcements->the_post(); ?>
<p><strong>Published by:<span itemprop="publisher"><?php echo
get_post_meta($post->ID, 'Publisher','true');?></strong></p>
<?php endwhile;?>
</div>