How to configure 'read more' for posts on static pages (1 post)

  1. mitchrenton
    Posted 7 years ago #

    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(); ?>

  2. <h4>"><?php the_title(); ?></h4>
    <h4><?php the_time('F jS, Y'); ?></h4>
    <p><?php the_excerpt("Continue reading…"); ?></p>
  3. <?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.


Topic Closed

This topic has been closed to new replies.

About this Topic