• Resolved wendallb

    (@wendallb)


    Hello,

    I am using version 2.7

    I don’t know if this can be done so here goes:

    Let’s say I have ten posts or topics in a category. What I want is when I click on a category all I want to see is a list of the ten topics and not complete posts. I want the ten topics to be live links to the posts..

    Thanks for any help..

    WendallB

Viewing 2 replies - 1 through 2 (of 2 total)
  • Using the WordPress Default Theme for discussion, to do this you would change the wp-content/themes/default/archive.php file and delete these lines:

    <div class="entry">
    	<?php the_content() ?>
    	</div>
    	<p class="postmetadata"><?php the_tags('Tags: ', ', ', ''); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    
    	</div>

    With the help of the Template Hierarchy article, I determined what Template displayed the category archives, then I edited that template and deleted reference to template tag, the_content(), which displays the content of posts. I also deleted the code that displayed categories and tags. What that left was a line of code that displayed the title of posts in the form of links. That line is:

    <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>

    Thread Starter wendallb

    (@wendallb)

    Thanks very much I will give that a go…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Category Question 2.7’ is closed to new replies.