WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Post latest entry and alternating excerpts (6 posts)

  1. twuks
    Member
    Posted 11 years ago #

    Well, what I want is to show my latest entry. That's not a problem, surely. But what I want is to show the latest, say five, entries below. Not the entire entry, but just an excerpt (an excerpt shows the first .. words, right?). And I'd like the colors to alternate. And that is just a tiny step too far for my humble brain. Please help, anyone?

  2. twuks
    Member
    Posted 11 years ago #

    Oh come on, please? It shouldn't be so hard...

  3. Kafkaesqui

    Posted 11 years ago #

    Have you looked at get_posts()?

    http://wiki.wordpress.org/get_posts

  4. twuks
    Member
    Posted 11 years ago #

    That's what I meant! Thanks!

  5. twuks
    Member
    Posted 11 years ago #

    Okay, now the alternating thing. I've found a wonderful script here: http://www.scriptygoddess.com/archives/2002/05/27/alternating-comment-colors/ but I can't figure out how to make it work with the excerpts in get_posts. Anyone? Please?

  6. carthik
    Member
    Posted 11 years ago #

    Modify whatever CSS it is that you are using to demarcate the post excerpts and use the code you linked to. You tweak, you learn :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.