Title: [Plugin: Sideblog WordPress Plugin] randomize sideblog posts
Last modified: August 19, 2016

---

# [Plugin: Sideblog WordPress Plugin] randomize sideblog posts

 *  [extomas](https://wordpress.org/support/users/extomas/)
 * (@extomas)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/randomize-sideblog-posts/)
 * Hi guys, using sideblog plugin and fetching some information from RSS to my sideblog
   category (www.etech.lt)
 * I would like to randomize blog posts in one category (sideblog category) that
   on given time (or once per day) there were displayed another posts (in the same
   category as previous) by some criterions or other things.
 * How can I do this, maybe there are some plugins?
 * Sorry for my english, hope you understand.

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/randomize-sideblog-posts/#post-1288818)
 * Not sure what your sideblog is doing, but this will display a random post from
   category 1:
 *     ```
       <?php
       //list a random post title from one category
       $cat = 1; //category ID
          $args=array(
          'category__in' => array($cat),
          'orderby' => 'rand',
          'showposts' => 1,
          'caller_get_posts' => 1
          );
       $my_query = new WP_Query($args);
       if( $my_query->have_posts() ) {
       while ($my_query->have_posts()) : $my_query->the_post(); ?>
       <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
       <?php
       endwhile;
       }
       wp_reset_query();  // Restore global post data stomped by the_post().
       ?>
       ```
   
 *  Thread Starter [extomas](https://wordpress.org/support/users/extomas/)
 * (@extomas)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/randomize-sideblog-posts/#post-1288866)
 * I am talking about this plugin: [http://wordpress.org/extend/plugins/sideblog/](http://wordpress.org/extend/plugins/sideblog/)
 * This plugin get posts from various sources by RSS feed (fetching from them) in
   to one category (as normaly must be), but I need to randomize that category posts…
 *  Thread Starter [extomas](https://wordpress.org/support/users/extomas/)
 * (@extomas)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/randomize-sideblog-posts/#post-1288895)
 * and one more thing: I need that there would be displayed not old posts at random
   order, but only newest or not older than…. [some date].
 * Anyone can help me with that? Know that plugin?

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

The topic ‘[Plugin: Sideblog WordPress Plugin] randomize sideblog posts’ is closed
to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [extomas](https://wordpress.org/support/users/extomas/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/randomize-sideblog-posts/#post-1288895)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
