Support » Fixing WordPress » Just want to see the list of topic in categories

  • hi all,

    I just have a WP blog. and in this blog i created many categories. what i want to do that is when visitor click to the directories the list of only title of my post can be displayed.
    for example: when visitor click to categories A we may see the list as below:
    – Title Post 1 (date)
    – Title Post 2 (date)
    – Title Post n (date)
    i mean it will not includes the summary of the post in the list. So, anybody can give me an advice?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator keesiemeijer


    If I read that correctly you want to show only titles on a category page.
    look for <?php the_content(); ?> or <?php the_excerpt(); ?> in your theme’s category.php and delete it.



    Forum Moderator

    edit category.php and remove the line with the_excerpt();

    if your theme does not have a category.php, make a copy of index.php and save it as category.php; then edit it.

    to get the date in the same line after the title, try something like:
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php echo get_post_meta($post->ID,'incr_number',true).' - '; ?><?php the_title(); ?></a> <span>(<?php the_time('F jS, Y') ?>)</span></h2>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Just want to see the list of topic in categories’ is closed to new replies.