Support » Fixing WordPress » the_content

  • I know Kubrick uses the _excerpt() for archive views. I want to see the full post and images, so I’ve changed that to the_content() in archive.php. However, it makes no difference. I’ve also tried the_content('','1','') but that doesn’t work either. I’m using a fresh install of 1.5.

    Any ideas?


Viewing 9 replies - 1 through 9 (of 9 total)
  • Are you quite sure you’re editing the archive.php for the active theme? Also, the line below that, the one with a link to the full post in single page glory, will still be there if you don’t comment it out, and may be leading you astray.

    Erm, OK, I seem to have been lying! Seems to be working now. Maybe cached. I don’t see the line below that you mention. only:

    <?php while (have_posts()) : the_post(); ?>
    <div class="post">
    <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    <small><?php the_time('l, F jS, Y') ?></small>

    <div class="entry">
    <?php the_content('','1','') ?>

    <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>

    Also, it doesn’t show the entire month or category archive. Just a few posts. How do I get it to show the entire archive?


    Actually quite like the showing of just a few, but then when it gets to the end of the posts and you click on ‘previous entries’ you get a 404 error

    Either you worked it out for yourself, or I’m looking at the wrong site, but I get no 404 errors when clicking “previous” or “newer”.

    Try here:

    Then click on the previous link


    Also, that page isn’t showing the image that is in that one post.

    You shouldn’t have an active ‘previous entries’ link on that page at all. Check your source. This is all you should have:

    <div class="navigation">
    <div class="alignleft"><?php posts_nav_link('','','&laquo; Previous Entries') ?></div>
    <div class="alignright"><?php posts_nav_link('','Next Entries &raquo;','') ?></div>

    You seem to have more links showing up than that.

    Don’t know why the pic isn’t showing up, but if you can get to the bottom of the other error, it may cure this as well.

    That is all I have. Haven’t changed the default at all.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘the_content’ is closed to new replies.