`<?php get_header(); ?>
<div id=”container”>
<?php if (is_category(‘Golf Course Reviews’)) : ?>
<?php elseif (is_category(‘Category B’)) : ?>
<p></p>
<?php else : ?>
<p></p>
<?php endif; ?>
<?php if(have_posts()): ?>
<?php $adcount = 1; ?>
<?php while(have_posts()):the_post(); ?>
<div class=”post”>
<h2><a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>”>
<?php the_title(); ?>
</a></h2>
<div class=”entry”>
<?php if ($count == 1) : ?>
<?php endif; $count++; ?>
<?php if( is_category( ‘golf-wars’ ) ) the_content();
else the_excerpt();?>
<p class=”postmetadata”>
<?php if(function_exists(‘wp_gdsr_render_article’)){ wp_gdsr_render_article(); } ?>
<?php _e(‘Tags:’); ?>
<?php the_category(‘, ‘) ?>
<?php _e(‘by’); ?>
<?php the_author(); ?>
<br />
<?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>
<?php edit_post_link(‘Edit’, ‘ | ‘, ”); ?>
</p>
<?php if ($adcount == 3) : ?>
<?php
$args = array(
‘numberposts’ => 50,
);
$posts_array = get_posts( $args );
?>
<center><script type=”text/javascript”><!–
google_ad_client = “ca-pub-7545639328816787”;
/* Category Ads */
google_ad_slot = “9432147552”;
google_ad_width = 468;
google_ad_height = 60;
//–>
</script>
<script type=”text/javascript”
src=”https://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script></center>
<?php endif; $adcount++; ?>
</div>
</div>
<?php $adcount++; ?>
<?php endwhile; ?>
<div class=”postnav”>
<?php posts_nav_link(); ?>
</div>
<?php else: ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>
<?php _e(‘Not Found’); ?>
</h2>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer() ?>
</body></html>