WordPress.org

Ready to get started?Download WordPress

Forums

archives showing list instead of entire post (2 posts)

  1. iliketocolour
    Member
    Posted 5 years ago #

    I'm having trouble with my archives, as when a date is clicked, it shows a categorized list of posts, rather than the entire posts themselves. Not sure what php page needs to be altered. Here is my archive.php code...

    <?php
    /*
    Template Name: Archives
    */
    ?>

    <?php include (TEMPLATEPATH."/header.php"); ?>

    <div id="content">
    <div id="contentleft">
    <h2>Archives for <?php the_time('F Y') ?></h2>

    <p align="center"><?php posts_nav_link(' — ', __('« newer posts'), __('older posts »')); ?></p>
    </div>
    <?php include(TEMPLATEPATH."/sidebar.php");?>
    </div>

    <?php get_footer(); ?>

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    <?php while(have_posts()) : the_post(); ?> <?php the_time('d') ?> - "><?php the_title(); ?>
    
    <?php the_content() ?>
    
    <?php endwhile; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.