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

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter iliketocolour

    (@iliketocolour)

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

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘categories list instead of showing entire post’ is closed to new replies.