Support » Fixing WordPress » How to post an abstract of the latest post to my front page

Viewing 14 replies - 1 through 14 (of 14 total)
  • I am only just beginning to get into this myself and cant give a precise answer. But I am thinking in terms of running the loop twice. First time round it will pick up something very similar to what you want. Second time round it will do the whole lot. For this type of high end dev you would be best consulting the awesome codex which is a treasure trove of useful info, very well written IMHO.
    and relatively simple to follow.

    This sounds like something that can be handled by Nick Momrick’s recent posts plugin. The plugin takes in a number of parameters, two of which are the number of posts retrieved (1 i.e. the latest one) and whether or not you want a extract (abstract).

    Mark (podz)


    Support Maven

    I would use an rss function.

    Or a slug ? Excert thingy ?

    This might be the thing you want:

    Plugin: Customizable Post Listings

    This supports a multitude of options including the following tags:

    %post_content% // Full content of the post
    %post_date% // Date for post
    %post_excerpt% // Excerpt for post
    %post_excerpt_short% // Customizably shorter excerpt, suitable for sidebar usage

    You could install the plugin, and then place the code in your page template to have it display on your front page. Alternatively install RunPHP and then copy the code into the page that way.

    Should do the job though. So if I understand you correctly, everytime there is a new post, you want that little bit wherever the code is to automatically update itself to provide an extract of the most recent post.

    OK, I did what you had suggested: I uploaded the plugin, activated it, and then pasted the following

      Recently Commented
      <?php c2c_get_recently_commented(3); ?>

    into my test page:

    See the error I get on the right-side column:

    Recent Posts
    Fatal error: Call to undefined function: c2c_get_recent_posts() in /home/lawre2/public_html/blog.php on line 103

    I am sure I am showing my total ignorance of PHP here but I would greatly appreciate anybody’s help with this.

    Ideally, I would implement this code on the front page which currently is static HTML (I assume I will have to rename it into index.php).

    Thanks in advance!


    I can offer some clues. I am sorry I can’t try it out and tell you what absolutely works.

    Use the function query_posts (use to see how the function is written)

    Create a new query, something like
    $my_posts = query_posts();
    Then copy the loop over from the main loop, changing references to $posts with $my_posts , as needed.

    websage: make sure your page is WordPress-aware:

    And yes, it would need to be .php-ized.

    <?php $myposts =


    foreach ($myposts as $mypost) :



    <li><?php the_excerpt(); ?></li>

    <?php endforeach; ?>

    Should work in the sidebar, after you do what Kaf suggested above.

    Thank you so much! This is starting to work:

    Now, how can I have just the excerpt of the latest entry posted on the front page?

    Thanks in advance!

    Have another block of code like right above your post, but instead set the numberposts to 1?

    Hmm, I did that but I do not get anything:

    I would like to do a similar thing – I need the date of the last *posted* (not necessarily last modified) post on a WAP hoempage.

    For instance:
    My blog (last update 10/04)

    I had a look at the plugin, but couldn’t work out if it was what I needed or not.

    Can anyone help?


    I would give more information, but I don’t know what else you need.

    If you let me know, I will provide it 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How to post an abstract of the latest post to my front page’ is closed to new replies.