Support » Fixing WordPress » How to configure ‘read more’ for posts on static pages

  • I have a static homepage which I am showing the last 3 posts using the following code:

    <?php query_posts(‘showposts=3’); ?>
    <?php while (have_posts()) : the_post(); ?>

  • <h4>“><?php the_title(); ?></h4>
    <h4><?php the_time(‘F jS, Y’); ?></h4>
    <p><?php the_excerpt(“Continue reading…”); ?></p>
  • <?php endwhile;?>

    I only want to show the first sentence on these posts followed by a ‘read more’ link. I know you can use the ‘more’ facility in the post editor box but i want to show more than the first sentence on the main blog page.

    Is there a way to specify a cut off point for the static page posts which will not affect the main blog?

    Any help will be greatly appreciated.


  • The topic ‘How to configure ‘read more’ for posts on static pages’ is closed to new replies.