Kruimel

$archiefid = get_permalink(6011); 
$archief = get_the_title(6011);

echo "<div class='kruimel'>";
echo "<a href=" . $archiefid . ">";
echo "<i class='fa fas fa-angle-left'></i> " . $archief . "</a>";
if ( 'post' === get_post_type() )
{
	echo " - <span class='entry-meta'>";
	the_time('j F Y');
	echo "</span>";
}
echo "</div>";

Bovenliggende categorie 1

$postid = $post->ID;
$projectencat = wp_get_post_categories($postid);

foreach( $projectencat as $projectenc )
{
	$projectencat = get_category( $projectenc );
	$projectenid = get_cat_ID( $projectencat->name );
	
	if ( $projectenid !== 1856 && $projectenid !== 1857 && $projectenid !== 1866 )
	{
		$projectenargs = array ( 'category__and' => array($lang,$projectenid,1863) );
		$projectenposts = get_posts( $projectenargs );
		
		foreach( $projectenposts as $huis )
		{
			$huisid = $huis->ID;
			$huistitel = $huis->post_title;
			echo "<a href=" . get_permalink( $huisid ) . "><i class='fa fas fa-angle-left'></i> " . $huistitel2 . "</a>";
		}
	}
}

Bovenliggende categorie 2

$cats = get_the_category( get_the_ID() );
$cat = array_shift($cats);

echo "<a href=" . esc_url( get_category_link( $cat->term_id ) );
echo "><i class='fa fas fa-angle-left'></i> " . $cat->name . "</a>";