Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dalio

    (@dalio)

    Woo – worked it out!! Should be able to move forward with the other stuff now :0)

    For those that are interested, I found the answer in the Maxpower post

    And my result ended up looking like this (for the second bit – his code took me a few seconds to remember to add curly brackets etc):

    <?php query_posts('showposts=3'); ?>
    <?php while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate ) {
    continue;
    } else { ?>
    <h4><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h4>
    <?php the_content_limit(220, "Read more..."); ?></p>
    <?php } endwhile;?>

    I hope this helps someone :0)

    Thread Starter dalio

    (@dalio)

    I managed to work it out – I love this hacking stuff :0)

    Basically I used the post-teaser plugin to only show the first 100 characters of a post and restricted the homepage to display 1 post at a time. The normal loop was in a div called latestpost

    I then found in the Wikki the useful get_posts template tag – so I then created another div called recentposts and used the get_posts function to return the title and excerpt from the most recent 3 posts (using an offset of 1 to miss the latest post).

    Bingo – nice and controlable :0)

Viewing 2 replies - 1 through 2 (of 2 total)