• Hi. I would like to know if it is possible to make it so that all the topics in the archives show up as titles in their archive pages (without any summaries etc). Once the person clicks on the title, then the full page should open. This will greatly save space, and prevent people from having to scroll across countless number of pages in order to find the topic they were looking for.

    I would like to point out that this should apply only archives, not to the home page.

    I hope someone can help me out.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Edit the archive.php template file and delete the_content and other stuff from the Loop – leave only the_title in it.

    Thread Starter rusnarod

    (@rusnarod)

    I Tried that earlier but because i didn’t have specific instructions as to what to delete, i kept deleting the wrong stuff.

    Could please be more specific. Perhaps show me the code that needs to be removed?

    Thanks!

    In the default theme’s archive.php file, lines #27-43 looks like this:

    <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    
    		<?php while (have_posts()) : the_post(); ?>
    		<div class="post">
    				<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>
    				<small><?php the_time('l, F jS, Y') ?></small>
    
    				<div class="entry">
    					<?php the_content() ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    
    			</div>
    
    		<?php endwhile; ?>

    Make it:

    <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    		<?php while (have_posts()) : the_post(); ?>
    		<div class="post">
    				<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>
    		</div>
    		<?php endwhile; ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show TITLES ONLY in archives’ is closed to new replies.