Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter raptrex

    (@raptrex)

    another example
    https://ifelse.co.uk/

    Thread Starter raptrex

    (@raptrex)

    i need help on this

    Then why don’t you ask the owners of the two blogs you linked to. A polite question/request sometimes makes miracles ??

    Thread Starter raptrex

    (@raptrex)

    oh i didnt think of that.
    well anyway i did some reading and came up with this

    <div id="content">
    <?php query_posts('posts_per_page=3');
    $postnum = 2; ?>
    <?php if (have_posts()) :?>
    <?php $postCount=0; ?>
    <?php while (have_posts()) : the_post();?>
    <?php $postCount++;?>
    <div class="entry entry-<?php echo $postCount ;?>">
    <div class="entrybody">
    <?php if ($postnum == $postCount) {
    the_excerpt('Continue Reading the Post');
    } else {
    the_content('Read the rest of the Post'); } ?></div>

    how can i make it show the excerpt for post 2, 3 and so on

    You need to modify your loop by adding an incrementing variable and a condition. Check this out, it explains it pretty well:

    https://troidus.com/article/6

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘full post of 1 post and excerpt of others’ is closed to new replies.