• Is there a way to show the last post completely and below that the excerpts of the five (or so) following posts on the frontpage?

Viewing 7 replies - 16 through 22 (of 22 total)
  • Note to future readers of this thread

    I’ve come to realize there’s a simpler method for running all filters on a post’s content, and one shouldn’t need worry over plugin filters, etc. So instead of the complicated function nesting above, use this:

    <?php
    echo apply_filters('the_content', $post->post_content);
    ?>

    I was looking over this thread. I have been trying to display the two most recent posts, only as excerpts. This was simple,

    <?php query_posts('posts_per_page=2'); ?>

      <?php
      $posts = get_posts('numberposts=2');
      foreach ($posts as $post) :
      ?>

    • \"><?php the_title() ?><?php the_excerpt(); ?>
    • <?php
      endforeach;
      ?>

    easy enough, I still have a few questions though. Where is the excerpt limit declared. For example, where is it set how many characters or words are displayed before the post is cut off. Also, how do I remove the “[…]” when the excerpt is used.

    Thanks
    Nick

    Nick, you may be interested in this recent thread:

    https://www.ads-software.com/support/topic/41856

    Especially where I hit on (a) here:

    https://www.ads-software.com/support/topic/41856#post-235181

    The wp_trim_excerpt function mentioned is also where the excerpt length is set. Another option may be my plugin:

    https://guff.szub.net/the-excerpt-reloaded/

    I am so confused. I don’t know where to start first. Can someone please tell me what file I should edit first?

    Your active theme’s index.php (Index) would be a good place to start, if you’re looking to alter the diplay of your blog on its home page.

    I used this method, but comments_popup_links for the excerpts does not work. Is this a bug? Or am I doing something wrong?

    It’s rather urgent.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Only last post, then excerpts?’ is closed to new replies.