Support » Fixing WordPress » edit archive.php to show list

  • Resolved gimmeblog


    Anyone who knows how to edit the archive.php to show parts of a post. Like title + a few words?

Viewing 2 replies - 1 through 2 (of 2 total)
  • here is code for showing title, the date, the author, comments, a few words (excerpt) and tags. you will need to look up the names of your “div class” tags or create new ones in your style.css …

    <div class="">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <p class="small"><?php the_time('F jS, Y') ?> by <?php the_author() ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p>
    <div class="">
    				<?php the_excerpt() ?>
    			<p class="tagged"><strong>Tags:</strong> <?php the_category(' &middot; ') ?></p>

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘edit archive.php to show list’ is closed to new replies.