Hi,
Ok, I understand now. Mistake was mine for not thinking it through more. The solution is below, yet there are several other places throughout the theme where you will run into similar issues, though this is the most obvious case.
Please open loop-portfolio.php which is in the includes folder of the theme *after* you backed up and saved the original file.
Find a block of code approximately between lines 67-83:
$output .= "<div class='sort_by_cat $hide '>";
$output .= "<a href='#' data-filter='all_sort' class='all_sort_button active_sort'>".__('All','avia_framework')."</a>";
foreach($categories as $category)
{
$output .= "<span class='text-sep ".$category->category_nicename."_sort_sep'>/</span>";
$output .= "<a href='#' data-filter='".$category->category_nicename."_sort' ";
$output .= "class='".$category->category_nicename."_sort_button' >".$category->cat_name."</a>";
$container_id .= $category->term_id;
}
$output .= "</div>";
$output .= "</div></div>";
//fake pagesplit
and replace it with the code below
$output .= "<div class='sort_by_cat $hide '>";
$categories = array_reverse($categories, true); //reverses categories for right-to-left languages
foreach($categories as $category)
{
$output .= "<span class='text-sep ".$category->category_nicename."_sort_sep'>/</span>";
$output .= "<a href='#' data-filter='".$category->category_nicename."_sort' ";
$output .= "class='".$category->category_nicename."_sort_button' >".$category->cat_name."</a>";
$container_id .= $category->term_id;
}
$output .= "<a href='#' data-filter='all_sort' class='all_sort_button active_sort'>".__('All','avia_framework')."</a>"; //All displayed last in right to left languages
$output .= "</div>";
$output .= "</div></div>";
//fake pagesplit
Please let us know how it went.
Thanks,
Nick