Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ndre

    (@ndre)

    Hi Prasad,

    Currently the only way would be to add a custom php code to your theme functions.php however this will affect all [show_products] shortcodes:

    add_filter('shortcode_query','ic_randomize_shortcode_output');
    function ic_randomize_shortcode_output($query) {
    $query['orderby'] = 'rand';
    return $query;
    }

    Where are you using random products?

    We will add new shortcode attribute to the next update so you will be able to achieve this with:

    [show_products  products_limit="4" orderby="rand"]

    It will be released on the beginning of next week.

    Thread Starter Tharanga Jayasuriya

    (@prasad_tharanga)

    Hi Ndre,
    Thank you for your help. I happy to hear about new updates and it is very usefull if related products widget is there.

    Prasad

    My Demo site

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘random products display’ is closed to new replies.