I've two templates, one is category (multi select check boxes) and one is result based on the selected category
when I'm rendering result page all result is showing in every category, its not filtered each result should be belongs to the referenced category
<?php
$getCities = $pages->find("template=t3Cities_list, tags={$page->tag_code}, sort=title");
$getResult = $pages->find("template=attractions, tags={$page->tag_code}, sort=random");
?>
<div class="container">
<?php
foreach($getCities as $city){
echo "<div class='row'>";
echo $city->title ;
echo "</div>";
foreach($getResult as $result){
echo $result->title ;
}
}
?>
</div>
result should be like this
Birmingham
Oxford Street Louvre and Tuileries
Dubai
Gold Souk Dubai Mall
paris
Mercado de Motores Nómada Market