Title: Exclude current post
Last modified: November 21, 2016

---

# Exclude current post

 *  Resolved [catmaniax](https://wordpress.org/support/users/catmaniax/)
 * (@catmaniax)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/exclude-current-post-8/)
 * Hello, I really like your plugin.
 * I use the link of the plugin that I implement in a “random” button. But many 
   times it shows the same post, so is there anyway I can exclude the current post
   when someone pushes the random button?
 * Please let me know.
    Thanks.

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

 *  Plugin Author [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * (@robertpeake)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/exclude-current-post-8/#post-8465055)
 * Unfortunately not at this time. If you have a larger number of items in the “
   pool”, of course, it will be less likely that you end up on the same one.
 *  Thread Starter [catmaniax](https://wordpress.org/support/users/catmaniax/)
 * (@catmaniax)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/exclude-current-post-8/#post-8465476)
 * Thanks for the quick reply.
 * Is there a way to achieve that with custom code though?
 *  Plugin Author [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * (@robertpeake)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/exclude-current-post-8/#post-8473026)
 * Everything is possible with code! 🙂
 * Unfortunately, the way I am seeing it this would not be trivial. You would need
   to find the post id from the referrer link in to the random URL, then get the
   pool of possible ids and exclude this one.
 * If you do manage it, please consider contributing back the code to make the plugin
   more useful to everyone. I just don’t have time at the moment to take on these
   kinds of “special projects”.
 * Good luck!
 *  Thread Starter [catmaniax](https://wordpress.org/support/users/catmaniax/)
 * (@catmaniax)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/exclude-current-post-8/#post-8504661)
 * I wish I knew how to do that.
    It will be a great new feature if you could implement
   it in the future. Some day maybe… 🙂
 *  Plugin Author [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * (@robertpeake)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/exclude-current-post-8/#post-8512034)
 * someday/maybe is my favourite list 😉
 *  Thread Starter [catmaniax](https://wordpress.org/support/users/catmaniax/)
 * (@catmaniax)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/exclude-current-post-8/#post-8512442)
 * It’s ok, it’s a great and easy plugin anyway.
    But that feature would skyrocket
   it 😀

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

The topic ‘Exclude current post’ is closed to new replies.

 * ![](https://ps.w.org/better-random-redirect/assets/icon-256x256.png?rev=1039316)
 * [Better Random Redirect](https://wordpress.org/plugins/better-random-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-random-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-random-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/better-random-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-random-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-random-redirect/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [catmaniax](https://wordpress.org/support/users/catmaniax/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/exclude-current-post-8/#post-8512442)
 * Status: resolved