Random Redirect Plugin

I just updated the  Random Redirect plugin, with two extra parameters.

8 thoughts on “Random Redirect Plugin

  1. Nice one, Matt. This adds so much functionality and value to the plugin, in my opinion. I’m sure I’ll be adding a link to my blog using the random_cat_id parameter.

    Thanks for the update. 🙂

  2. Awesome! I have this on my photo blog. I edited it so that it would use “/random/” as well. Great plugin—thanks for sharing.

    Hopefully Blicki will be available soon… 😛

  3. if you edit the random-redirect.php file and insert
    gthi code

    if ( isset( $_GET[‘random_post_day’] ) ) {
    $post_type = preg_replace( ‘|[^1-9]|i’, ”, $_GET[‘random_post_day’] );
    $query = “SELECT ID FROM $wpdb->posts WHERE post_date like ‘%$post_type%’ AND post_password = ” AND post_status = ‘publish’ ORDER BY RA
    ND() LIMIT 1″;
    }
    right before

    $random_id = $wpdb->get_var( $query );

    you may user

    http://somesite.com/?random&random_post_day=2008-09-12

    and you have a random post of the day

    If you have to many posts per day 🙂

SHARE YOUR THOUGHTS