Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Previous Posts Widget

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28765
    jnarciso
    Member

    I’d like to create a widget which displays previous posts (not recent posts like the WP default widget). Ideally it would allow the user to define how many previous posts to display, and would also take into account the posts displayed on homepage. So for example if I show the newest 4 posts, it would grab everything after that point.

    I think it would be very similar to Chris’ tutorial on recent posts function, but just somehow reversed so it shows previous posts: https://css-tricks.com/snippets/wordpres … -function/

    I’ve Googled around for awhile, but can’t find anything to lead me in the right direction. Maybe there is already a widget created for this? If so I couldn’t find it.

    Any help is greatly appreciated.

    #74446
    TheDoc
    Member

    query_posts(‘offset=1’);

    Change the 1 to be how every many recent posts you’d like to skip.

    #74548
    jnarciso
    Member

    I found a plugin that installs a widget – it does exactly what I needed:

    http://geeklad.com/alternate-recent-posts-widget

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.