Hi - I saw a topic here on the forum about displaying ads by category
I put it on my website's home page and I liked it.
But every time I access the website, it only shows the same ads
from the same store.
How can I add randomization to these ads?
-------------
1) get listings into memory:
<?php
osc_query_item(array(
"category" => "4"
));
?>
------------
2) show listings:
<?php
while(osc_has_custom_items()) {
echo osc_item_id();
}
?>
===============
This is mine and it worked but the code doesn't do random
<?php osc_query_item(array("category" => "3", "results_per_page" => "4")); ?>
<?php View::newInstance()->_exportVariableToView('', veronika_random_items()); ?>
<?php if( osc_count_custom_items() > 0) { ?>
<div class="wrap" style="margin:-30px 0 -20px 0;">
<?php $c = 1; ?>
<?php while( osc_has_custom_items() ) { ?>
<?php veronika_draw_item($c, 'gallery'); ?>