Support » How-To and Troubleshooting » full post in archive?

full post in archive?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Replace the_excerpt with the_content in the category.php or archive.php – depending what is used by your theme to display category archives.
    More: Template_Hierarchy
    Read this, too: Template_Tags look for the excerpt vs. content

    I’m not seeing that…

    <?php get_header(); ?>
    <div id=”wrapper”>
    <div id=”content”>
    <div class=”mini-header”>
    <div class=”info”><?php include (TEMPLATEPATH . ‘/info.php’); ?></div>
    <div id=”headerimg”>
    <div class=”description”><?php bloginfo(‘description’); ?></div>

    <?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=”pagetitle”>Archive for the ‘<?php echo single_cat_title(); ?>’ Category</h2>

    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    <h2 class=”pagetitle”>Archive for <?php the_time(‘F jS, Y’); ?></h2>

    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    <h2 class=”pagetitle”>Archive for <?php the_time(‘F, Y’); ?></h2>

    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    <h2 class=”pagetitle”>Archive for <?php the_time(‘Y’); ?></h2>

    <?php /* If this is a search */ } elseif (is_search()) { ?>
    <h2 class=”pagetitle”>Search Results</h2>

    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    <h2 class=”pagetitle”>Author Archive</h2>

    <?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
    <h2 class=”pagetitle”>Blog Archives</h2>

    <?php } ?>

    <?php while (have_posts()) : the_post(); ?>
    <?php include (TEMPLATEPATH . ‘/loop.php’); ?>

    <?php endwhile; ?>

    <div id=”nav-below” class=”navigation”>
    <div class=”nav-previous”><?php next_posts_link(__(‘<span class=”meta-nav”>«</span> Older posts’)) ?></div>
    <div class=”nav-next”><?php previous_posts_link(__(‘Newer posts <span class=”meta-nav”>»</span>’)) ?></div>

    <?php else : ?>

    <h2 class=”center”>Not Found</h2>
    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    <?php endif; ?>


    <?php get_sidebar(); ?>
    <div class=”clear”></div>
    <?php get_footer(); ?>

    Then get a normal theme. Yours is done by one of those idiot designers that that screw up the customization by using the same Loop in every template file – by calling it from the loop.php file.

    Another option: delete this line:
    <?php include (TEMPLATEPATH . '/loop.php'); ?> and put instead the content of the loop.php… and then proceed with the suggested changes.

    May the Gods smile on you! I found the_excerpt and changed it to content, it was in the loop file!

    Thank you, thank you!!! :o)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘full post in archive?’ is closed to new replies.