Support » Fixing WordPress » Code help – excerpts on front page

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

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

    Aha… thank you!! 🙂


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Code help – excerpts on front page’ is closed to new replies.