WordPress.org

Ready to get started?Download WordPress

Forums

categories list instead of showing entire post (4 posts)

  1. iliketocolour
    Member
    Posted 4 years ago #

    I'm having trouble with my current site, as I'm wanting to show entire posts instead of a categorized list once clicked on a category. Here's the code in my category.php file. The same happens with my archives. Any help would be great, thanks!

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

    <div id="content">

    <div id="contentleft">
    <h3>Posts related to <?php single_cat_title(); ?></h3>
    <?php echo category_description(); ?>

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

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

    <?php get_footer(); ?>

  2. MichaelH
    Member
    Posted 4 years ago #

    See if you are happy with changing this:

    <?php the_excerpt(); ?>

    to this:

    <?php the_content('Read the rest of this entry &raquo;'); ?>

    Also see:
    the_content()
    the_excerpt()

    Also check out the first four questions here:
    http://codex.wordpress.org/FAQ_Layout_and_Design#Text_and_Content_Display

  3. iliketocolour
    Member
    Posted 4 years ago #

    Thanks so much! Huge help. The archives page is still doing the same thing. Anymore help would be much much appreciated. Here's the code for archive.php.

    <?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(); ?>

  4. MichaelH
    Member
    Posted 4 years ago #

    Just add <?php the_content('Read the rest of this entry &raquo;'); ?> after the <?php the_time('d') ?> - "><?php the_title(); ?> line. Do you see the patterrn there?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags