Displaying posts in category blocks in random order on the homepage in the beta theme
I have placed in the beta theme this code in main.php, the category blocks is displayed correctly, but the random order is not working.
<div class="home-container latest">
<div class="inner">
<!-- LATEST LISTINGS BLOCK -->
<div id="latest" class="products grid">
<h2><?php _e('Lately added on our classifieds', 'beta'); ?></h2>
<?php
osc_query_item(array(
"category" => "1","results_per_page" => "4", "order" => "RAND()" )); ?>
<?php if( osc_count_custom_items() > 0) { ?>
<div class="block">
<div class="prod-wrap">
<?php $c = 1; ?>
<?php while( osc_has_custom_items() ) { ?>
<?php bet_draw_item($c); ?>
<?php $c++; ?>
<?php } ?>
</div>
</div>
<?php } else { ?>
<div class="home-empty">
<img src="<?php echo osc_current_web_theme_url('images/home-empty.png'); ?>" />
<strong><?php _e('No listing in category yet', 'beta'); ?></strong>
</div>
<?php } ?>
<?php View::newInstance()->_erase('items') ; ?>
</div>
</div>
</div>