Need help? Check out our Support site, then


Customizing Archives message

  1. I am trying to customize my Archive page so that users can see a short message from me, links to my blog's "Greatest Hits," and then browse by month/year and category. I was able to configure the page in my admin area so that the month/year and category sections appeared, but cannot seem to get my message and links to appear.

    Do any of you have any suggestions? PHP is really alien to me, and I'm just stabbing in the dark . Here's the code as I have it now, if that helps:

    <?php get_header(); ?>
    Hey there -- thanks for caring about my other stuff! This blog setup is pretty new, and I'm just learning the intricacies of WordPress publishing -- so, all apologies if something on this page is broken or laid out in a wack fashion. I'd really appreciate it if y'all e-mailed me any tips or advice on how to make this page work better.

    Here are a few posts from my former blog at And I Am Not Lying, For Real. The layout was different there, so the photos may bleed over into the right sidebar a bit, and the links may need to be updated. But perfection is the enemy of the good, as my old boss used to say, so here are the hits in characteristically messy fashion. Some of these are decent examples of my writing, some just got a lot of traffic for some reason or another, and some I just like even though they're not that good. Dig around and have fun ...

    Greatest Hits

    <div id="content_box">

    <?php include (TEMPLATEPATH . '/l_sidebar.php'); ?>

    <div id="content" class="posts">

    <?php if (have_posts()) : ?>

    <?php //$post = $posts[0]; // Hack. Set $post so that the_date() works. ?>

    <?php /* If this is a category archive */ if (is_category()) { ?>
    <h2 class="archive_head">Entries Tagged as '<?php echo single_cat_title(); ?>'</h2>

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h2 class="archive_head">Entries from <?php the_time('F Y'); ?></h2>

    <?php } ?>

    <?php while (have_posts()) : the_post(); ?>

    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <h4><?php the_time('F jS, Y') ?><!-- by <?php the_author() ?> --> · <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></h4>
    <div class="entry">
    <?php the_excerpt() ?>
    <p>#more-<?php the_ID(); ?>" title="Read the rest of this entry">[Read more →]</p>
    </div>
    <p class="tagged">Tags: <?php the_category(' · ') ?></p>
    <div class="clear"></div>

    <?php endwhile; ?>

    <?php include (TEMPLATEPATH . '/navigation.php'); ?>

    <?php else : ?>

    <h2 class="page_header">Welp, we couldn't find that...try again?</h2>
    <div class="entry">
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    </div>

    <?php endif; ?>

    </div>

    <?php include (TEMPLATEPATH . '/r_sidebar.php'); ?>

    </div>

    <?php get_footer(); ?>

    Thanks so much for your help,

    -JEff

  2. Is your blog here at wordpress.com, or are you self-hosted using the software from wordpress.org? Here at wordpress.com, we cannot edit the underlying theme html and php.

    If you are self-hosted, you need to be asking over at http://wordpress.org/support/

  3. Thanks for the tip ... I'll go do that now. But: why are the two seperate?

  4. This link explains the difference between .com and .org

    http://en.forums.wordpress.com/topic.php?id=3700&page&replies=1

Topic Closed

This topic has been closed to new replies.

About this Topic