WordPress.org

Ready to get started?Download WordPress

Forums

Just want to see the list of topic in categories (3 posts)

  1. johntrade
    Member
    Posted 4 years ago #

    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?
    thanks

  2. keesiemeijer
    moderator
    Posted 4 years ago #

    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.

  3. alchymyth
    The Sweeper & Moderator
    Posted 4 years ago #

    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>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags