• 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)
  • 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

    (@extomas)

    I am talking about this plugin: 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

    (@extomas)

    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.