• Hello everyone!

    Is there any way or plugin that can display a random post on a site?
    For example site.com/random BUT ALSO have the ability to exclude the already seen/read post and not pop it up again – or maybe start showing the same posts after the user has already seen ALL of the site’s posts and continues to hit the random button.

    Please let me know.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t know of any plugin off the top of my head that has functionality that specific, and a quick search isn’t turning up anything promising.

    What your asking isn’t that difficult to pull off, it would just require a little theme development. I would create a custom page template using the general post template as a base, then add a single post query to the template using sort by random. For preventing double post views you can store the post id in the user meta and exclude the meta field from each query on load. This would require the user to be logged in though. There are alternatives like using a cookie or some sort of unique ID like an ip address but each of those have their limitations as well.

    • This reply was modified 9 years, 2 months ago by csloisel.
    Thread Starter catmaniax

    (@catmaniax)

    Thanks for the reply.

    However, I’m not familiar with coding so all that seems pretty hard for me 🙁
    Please let me know if you stumble upon a plugin with such functionality, or if there’s an easy/step-by-step way to achieve this.

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

The topic ‘How to – (almost) random post & exclude already seen’ is closed to new replies.