<div class="row page_margin_top"> <ul class="taxonomies tags left clearfix"> <?php $tabletag = new PoTable('tag'); $tags = $tabletag->findAll(id_tag, DESC); $arrtags = explode(',', $currentDetail->tag); foreach ($tags as $tag) { $cek = array_search($tag->tag_seo, $arrtags) != false ? '' : 'display:none;'; echo "<li style='{$cek}'><a href='{$website_url}/search-result/{$tag->tag_title}' title='{$tag->tag_title}'>{$tag->tag_title}</a></li>"; } ?> </ul> </div> <?php $tablerelated = new PoTable('post'); $tablerelateds = $tablerelated->findRelatedPost($currentDetail->tag, $idpost, id_post, "DESC", "5"); if (count($tablerelateds) > 1) { ?> <div class="row page_margin_top_section"> <h4 class="box_header">Post Terkait</h4> <div class="horizontal_carousel_container page_margin_top"> <ul class="blog horizontal_carousel autoplay-1 scroll-1 navigation-1 easing-easeInOutQuint duration-750"> <?php foreach ($tablerelateds as $tablerelated) { ?> <li class="post"> <a href="<?php echo "{$website_url}/detailpost/{$tablerelated->seotitle}"; ?> " title="<?php echo $tablerelated->title;