how to add only posts title in catagory pages
-
I want to show only title of posts in catagory pages, do not want detail of posts. Can anyone help me how to do that.
My archive page is as under.
<?php get_header(); ?>
<div id=”content”>
<?php if(function_exists(‘wp_page_numbers’)) { wp_page_numbers(); } ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”pdate”><?php the_time(‘M’); ?> . <?php the_time(‘j’); ?> . <?php
the_time(‘Y’); ?></div>
<h1 id=”cath1″>” rel=”bookmark”><?phpthe_title(); ?></h1>
<div style=”clear:both;”></div>
<div class=”date”>- <?php the_author_posts_link(); ?> in category: <?php the_category(‘, ‘) ?>
|
<li class=”comment”><?php comments_popup_link(‘Leave a Comment’, ‘One
Comment’, ‘% Comments’); ?>
</div>
<div style=”clear:both;”></div>
<div id=”postarea”>
<div style=”clear:both;”></div>
<?php if( get_post_meta($post->ID, “preview”, true) ): ?>
” rel=”bookmark”><img class=”preview”src=”<?php echo get_post_meta($post->ID, “preview”, true); ?>” alt=”<?php the_title(); ?>” />
<?php else: ?>
<?php endif; ?><?php the_content(); ?>
<div style=”clear:both;”></div>
</div>
<?php endwhile; ?><?php if(function_exists(‘wp_page_numbers’)) { wp_page_numbers(); } ?>
<?php else : ?>
<h2 class=”center”><?php _e(‘Not Found’); ?></h2>
<p class=”center”><?php _e(‘Sorry, but you are looking for something that isn’there.’, ‘kubrick’); ?></p>
<?php include (TEMPLATEPATH . “/searchform.php”); ?><?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
- <?php the_author_posts_link(); ?> in category: <?php the_category(‘, ‘) ?>
- The topic ‘how to add only posts title in catagory pages’ is closed to new replies.