6.00-20.00
0822 2121 4145
Wednesday, October 6th 2021.

[insert_php]

<h4>Artikel Terkait :</h4>
<div class=”relatedpost”>
<?php $this_post = $post;$category = get_the_category(); $category = $category[0]; $category = $category->cat_ID;$posts = get_posts(‘numbeIDR»osts=5&offset=0&orderby=rand&order=DESC&category=’.$category);$count = 0;foreach ( $posts as $post ) {if ( $post->ID == $this_post->ID || $count == 5) {unset($posts[$count]);}else{$count ++;}}?>
<?php if ( $posts ) : ?>
<div>
<?php foreach ( $posts as $post ) : ?>
<a href=”<?php the_permalink() ?>” target=”_blank”><?php if ( get_the_title() ){ the_title(); } else { echo “Tidak ada artikel terkait”; } ?></a><br>
<?php endforeach // $posts as $post ?>
</div>
</div>
<?php endif // $posts ?>
<?php $post = $this_post;unset($this_post);?>

[/insert_php]

Hbg! Seller