Okay
  Public Ticket #2867260
Random view Carousel Template
Closed

Comments

  •  1
    Doca started the conversation

    Dear CP,


    Regarding a previous question asking the option of random product view in the Showcase Template which you provided the following code:

    $satelite_args = array(       

    'post_type' => 'satelite_portfolio',       

    'paged' => $satelite_paged,        

    'tax_query' => $satelite_showcase_tax_query,

           'orderby'        => 'rand',

           'posts_per_page' => 1000, 

    );

    While the Carousel Template is active this random view would be good to have it, could you provide code for it as well?


    Thanks!


    BR


  •  1,823
    Support replied

    Hello,

    same thing except you need to open carousel-page.php and modify lines 45-50 to

    $satelite_args = array(
         'post_type' => 'satelite_portfolio',
         'paged' => $satelite_paged,
         'tax_query' => $satelite_carousel_tax_query,

         'orderby'        => 'rand',
         'posts_per_page' => 1000,
    );

    I haven't tested it but I think it works

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy