Çözüm : https://www.seobil.com/icerik-harita...lement-sorunu/

Bendeki dosya
<?php
get_header(); ?>
<style>
a:link {text-decoration: none;}
a:visited {text-decoration: none;}
a:hover {text-decoration: none;}
a:active {text-decoration: none;}
</style>
<main class="content" title="test" id="genesis-content">
<div class="breadcrumb" itemscope="" itemtype="http://schema.org/BreadcrumbList">
<a href="<?php bloginfo('url'); ?>">Anasayfa</a>
<?php
$bu_kategori = get_category(get_query_var('cat'));
$parent = $bu_kategori->category_parent;
$breadDizi = array();
do{
if ( $parent != 0) {
$ust_kategori = get_category($parent);
$breadDizi[] = array(
"term_id" => get_category_link($ust_kategori->term_id),
"name" => $ust_kategori->name,
);
$parent = $ust_kategori->category_parent;
}
}while($parent > 0);
$newBread = array_reverse($breadDizi, true);
foreach ($newBread as $value) {
?>
<span aria-label="breadcrumb separator">/</span>
<a href="<?=$value["term_id"]?>" title="<?=$value["name"]?>"><?=$value["name"]?></a>
<?php
}
?>
<span aria-label="breadcrumb separator">/</span>
<?=$bu_kategori->name?>
</div>
<article class="post-682 post type-post status-publish format-standard category-ingilizce-yillik-planlar entry" itemscope="" itemtype="http://schema.org/CreativeWork">
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- bidunya esnek -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-9046407506781802"
data-ad-slot="5678117849"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center>
<br>
<?=$bu_kategori->name?>
<?php
foreach ($breadDizi as $value) {
?>
<?=$value["name"]?>
<?php
}
?>
<?php
$parents = $bu_kategori->category_parent;
$ust1 = get_category($parents);
if ($bu_kategori->category_parent == 0 || $ust1->category_parent != 0) {
$args2 = array('parent' => $bu_kategori->term_id);
$categories = get_categories( $args2 );
$x = 1;
}else{
$categoriez = get_the_category_by_ID($bu_kategori->term_id);
$categories = array();
$categoriex = (object) array(
"term_id" => $bu_kategori->term_id,
"name" => $categoriez->name,
"category_parent" => $categoriez->category_parent,
);
$categories[] = $categoriex;
$x = 0;
}
foreach($categories as $category) {
// echo '<p>Category: <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </p> ';
?>
<table class="w3-table w3-bordered">
<?php if($x==1){ ?>
<thead>
<tr class="w3-hover-blue-grey">
<th><?=$category->name?></th>
</tr>
</thead>
<?php } ?>
<tbody>
<?php
$args = array( 'order' => "ASC", 'posts_per_page' => -1, 'category' => $category->term_id );
$myposts = get_posts( $args );
// print_r($myposts);
foreach ( $myposts as $post ){?>
<tr class="w3-hover-blue-grey" style="width: 50%;
float: left;">
<td><a href="<?=get_permalink($post->ID)?>"><?=$post->post_title?></a></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php
}
?>
<center>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- bidunya esnek -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-9046407506781802"
data-ad-slot="5678117849"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</center><br>
<p> Açıklama: <?=$bu_kategori->description?> </p>
</article>
</main>
<?php get_sidebar(''); ?>
<?php get_footer(); ?>