• Hi,
    I am trying to randomly sort items in my Ait Themes City Guide theme on . AIT told me which file I need to edit but won’t give me the syntax. This is the raw code.

    {var $filterCountsSelected = isset($_REQUEST['count']) && $_REQUEST['count'] != "" ? $_REQUEST['count'] : $settings->sortingDefaultCount}
    
    	{if defined("AIT_ADVANCED_FILTERS_ENABLED")}
    		{if isset($_REQUEST['filters']) && $_REQUEST['filters'] != ""}
    			{var $filterCountsSelected = -1}
    		{/if}
    	{/if}
    
    	{var $filterOrderBySelected = isset($_REQUEST['orderby']) && $_REQUEST['orderby'] != "" ? $_REQUEST['orderby'] : $settings->sortingDefaultOrderBy}
    	{var $filterOrderSelected = isset($_REQUEST['order']) && $_REQUEST['order'] != "" ? $_REQUEST['order'] : $settings->sortingDefaultOrder}

    Can anyone tell me how to make it sort randomly? Thanks so much! Ann

  • The topic ‘Syntax to sort listings randomly’ is closed to new replies.