Code help - excerpts on front page (4 posts)

  1. eveums
    Posted 11 years ago #

    Hello. I am using the Connections theme, and I would like to display excerpts on the front page, rather than full posts. I know that I would usually replace the_content with the_excerpt... however I don't see where I am even calling the_content!! Can someone please give me a hand with the code and let me know where to put in the_excerpt?
    THANKS!!! :)

    <div id="main">
    <div id="content">
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <div class="post">
    <?php require(TEMPLATEPATH . '/post.php'); ?>
    <?php comments_template(); // Get wp-comments.php template ?>
    <?php endforeach; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    <p align="center"><?php posts_nav_link() ?></p>

  2. ifelse
    Posted 11 years ago #

    The Connections theme author has done things a little bit differently; If you look inside the theme directory, you should see a file called post.php. You can then edit this as you see fit.

  3. eveums
    Posted 11 years ago #

    Aha... thank you!! :)

  4. saichan
    Posted 10 years ago #


    i have the same problem (i'm using connections too). i tried this in post.php but all it did was link back to the excerpt. it wont link to a full entry. can anyone help?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.