Your Time:
Our Time:
← Back to discussions

Mix Products in the Food Carousel

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 5 replies, 2 voices, and was last updated 12 years, 10 months ago by Fem.

  • 2013-10-24 at 8:57 am
    Support Expired
    #372
    minastirs
    Participant
    • Topics: 4
    • Replies: 9
    • Total posts: 13
    • Post count: 18

    I’m back 🙂 I think the “Food Carusell” is too static. It displays only the last four products. Although you can scroll. When the page is opened, the same products are always displayed. Can you mix? Otherwise it’s a bit boring.

    2013-10-24 at 10:51 am
    #383
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    If you can point me the URL I can help you out.

    2013-10-25 at 12:05 am
    Support Expired
    #407
    minastirs
    Participant
    • Topics: 4
    • Replies: 9
    • Total posts: 13
    • Post count: 18

    of course 🙂 http://www.fresh-go.de/limburg/

    Scroll down the Page and press f5. The first four products everytime the same.

    2013-10-27 at 1:46 pm
    #444
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Open the carouse_food.php file located in linofeast/framework/shortcode/carousel_food.php and find the below code and replace with the give replace code below that and have a random posts.

    Find Code

    $query = array(
    	'post_type'			=> 'menus', 
    	'posts_per_page'		=> $limit, 
    	'taxonomy'			=> 'menutype', 
    	'term'				=> $cats, 
    	'paged'				=> $paged,
    	'order'				=> 'DESC'
    );
    

    Replace Code

    $query = array(
    	'post_type'			=> 'menus', 
    	'posts_per_page'		=> $limit, 
    	'taxonomy'			=> 'menutype', 
    	'term'				=> $cats, 
    	'paged'				=> $paged,
    	'orderby'			=> 'rand',
    	'order'				=> 'DESC'
    );
    

    Only ‘orderby’ => ‘rand’, is the code added in the query array.

    Warm Regards
    Maqk

    2013-10-30 at 8:58 pm
    Support Expired
    #512
    minastirs
    Participant
    • Topics: 4
    • Replies: 9
    • Total posts: 13
    • Post count: 18

    Big Thanks Maqk. It works :)))

    2013-10-31 at 5:53 pm
    #522
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Glad it got worked 🙂
    Kindly please give ratings to the them by going to your themeforest account downloads sections beside the theme download button you can find the stars.

You must be logged in to reply to this topic.