WordPress.org

Ready to get started?Download WordPress

Forums

the_content (10 posts)

  1. shaky
    Member
    Posted 9 years ago #

    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?

    Thanks
    Shaky

  2. pericat
    Member
    Posted 9 years ago #

    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.

  3. shaky
    Member
    Posted 9 years ago #

    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','') ?>
    </div>

    <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>

  4. shaky
    Member
    Posted 9 years ago #

    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?

    Thanks

  5. shaky
    Member
    Posted 9 years ago #

    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

  6. pericat
    Member
    Posted 9 years ago #

    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".

  7. shaky
    Member
    Posted 9 years ago #

    Try here:

    http://www.shakykaiser.com/blog/archives/category/mlccc/page/2/

    Then click on the previous link

    Thanks

  8. shaky
    Member
    Posted 9 years ago #

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

  9. pericat
    Member
    Posted 9 years ago #

    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>
    </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.

  10. shaky
    Member
    Posted 9 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.