When someone clicks on my archives page for the month, all of the blogs are displayed in full by scroll-down. How can I change it so that when one clicks on an archives page for let's say October 2010, they see a list of the blog titles and dates and can choose which ones to click on? In other words, I'd like to have a list of links to my blog posts instead of making the visitor scroll down through each one. Is this possible? I am using wordpress 3.0 and aggionaire theme. Thanks, Rebecca

2 answers

Ktash 1851
1
point

It should be pretty simple actually. Go to your WordPress Administration page, and on the left hand side click on Appearance > Editor and it should lead you to some code. On the right hand side, click on the page that says Archive. Scroll about halfway down until you find the following code block

<?php while (have_posts()) : the_post(); ?>
    <div <?php post_class() ?>>
            <h2 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>
            <p class="theTime"><?php the_time('l, F jS, Y') ?></p>

            <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 &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>

        </div>

<?php endwhile; ?>

Right in the middle there, you'll see <?php the_content() ?>, which is where it prints the content of your post. You can simply remove that piece, and it will remove the content of the post. There is more information you probably don't want there, like the meta-data, which can be removed also. You'll probably want to end up with something like

<?php while (have_posts()) : the_post(); ?>
    <div <?php post_class() ?>>
            <h2 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>
            <p class="theTime"><?php the_time('l, F jS, Y') ?></p>
        </div>
<?php endwhile; ?>

You can do more styling from there if you want, but that should work to start.

Answered about 6 years ago by Ktash
  • This worked for Nov. and Sept. but Oct. is still showing all content. Any ideas? Rebecca about 6 years ago
0
points

This worked well for the September and November archives, but for some reason October is still displaying all contents.
Have any ideas or should I wait and check it again later?

Answered about 6 years ago by Rebecca
  • It works fine for all three for me. Try holding down shift when you click refresh and it should show properly. If not, comment back, and we can work on figuring out why. Ktash about 6 years ago