Random Post Link
Any way to get the random url? (2 posts)

  1. extatix
    Posted 5 years ago #

    Im playing around with a little quiz which will have an automatic redirect (using javascript) after a good answer. Is there a way I can get the random url instead of the link to it?

  2. extatix
    Posted 5 years ago #

    Never mind this one, adding ?random after my URL is enough of course. But how can I let it redirect to a custom post type? This does not work:

    function my_random_post_args($args) {
        $args['post_type'] = 'quiz';
        return $args;
    add_filter('random_post_args', 'my_random_post_args');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Random Post Link
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic