Group Admins

WordPress Troubleshooting and Support

Public Group active 10 months, 1 week ago ago

WordPress support from our community

Previous | Next Posts (or Pages) with Excerpt

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1445
    Chris Carvey
    Participant

    It’s pretty straight forward to grab the previous and next posts’ title and thumbnail but I’m having fits trying to figure out how to grab those respective posts excerpts to give the reader some more context. Anybody have any success with this? Apparently, there’s little on the internets about this.

    #2473
    Steve
    Keymaster

    @chrisdigital– Don’t archive pages do this?

    #2474
    Chris Carvey
    Participant

    I just looked at the archive.php format and I dont see what you mean.

    I’m trying to set up something like this:

    [Previous thumb ] | [Next thumb]
    [Prev title ] | [Next title]
    [Prev excerpt ] | [Next excerpt]

    While you’re currently on a post or a custom post type page. You would see this in the upper right corner or in a sidebar. The first two are very doable, not sure what to do about the last item.

    #2476
    Margarete Koenen
    Participant

    I placed the code for prevous title, image and excerpt at http://snipt.org/uific9.
    You would do the next link in the same way.

    #2477
    Chris Carvey
    Participant

    Thanks Margarette, I’ll give this a try. You’re a life saver.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.