Show one single category
-
Hello
I believe what I am trying to do is quite simple but I can not seem to find the correct solution any one able to help me?
I have a category.php page I just want to show the selected category from the menu with no sub categories included.
This is what I have in my category.php
<div id=”content”><?php while (have_posts()) : the_post(); ?>
<div class=”entry”>
<h3 class=”entrytitle” id=”post-<?php the_ID(); ?>”> ” rel=”bookmark”>
<?php the_title(); ?>
</h3>
<div class=”entrymeta”>
Posted <?php
the_time(‘F j, Y ‘);
$comments_img_link= ‘<img src=”‘ . get_stylesheet_directory_uri() . ‘/images/comments.gif” title=”comments” alt=”*” />‘;
comments_popup_link($comments_img_link .’ Comments(0)’, $comments_img_link .’ Comments(1)’, $comments_img_link . ‘ Comments(%)’);
edit_post_link(__(‘ Edit’));?>
</div><div class=”entrybody”>
<?php the_content(__(‘Read more »’));?><div class=”sociable”>
<?php if(function_exists(‘wp_email’)) { email_link(); } ?>
</div>
</div>
<!–
<?php trackback_rdf(); ?>
–>
</div>
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile?>
<p>
<?php _e(‘Sorry, no posts matched your criteria.’); ?>
</p><p>
<?php posts_nav_link(‘ — ‘, __(‘« Previous Page’), __(‘Next Page »’)); ?>
</p></div>
The topic ‘Show one single category’ is closed to new replies.