HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/KLeeuwen/old.samenbouwen.in/wwwroot/wp-content/themes/samenbouwenin/tag.php
<?php get_header(); ?>

<div class="aftermenubar"></div>
<?php while ( have_posts() ) : the_post(); 
	the_breadcrumb();
	endwhile;
	rewind_posts();
	
	$tag = single_tag_title('',false);
	$args = array(
			'post_type' => 'blogs', 
			'post_status' => 'publish',
			'tax_query' => array(
				array('taxonomy' => 'post_tag',
						'field' => 'slug',
						'terms' => $tag)
			));
	$query = new WP_Query($args);
	 
?>
<div class="row-fluid">
	<div class="span12"><h1><span class="orgtext"><?php single_tag_title(); ?></span> / <?php echo $query->found_posts ?> berichten gevonden</h1></div>
</div>
<br><br>
<div class="row-fluid">
	<div class="span9">
<?php 
	$i = 0;
	while ( $query->have_posts() ) : $query->the_post(); 
		$postId = $post->ID;
		$title = get_the_title();
		$image = get_field('afbeelding');
		$author = strtoupper(get_the_author()); 
		?>	
		<div>
			<img src="<?php echo $image['sizes']['large']?>" alt="<?php echo $image['alt']; ?>" />
			<br><br>			
	       	<h3 class="orgtext"><?php echo $title;?></h3>
	       	<br>
	       	<?php the_excerpt();?>
	       	<br>
	       	<a href="<?php the_permalink();?>" class="bluelink">Lees meer</a>
	       	<br>
	       	<?php if($i < $query->found_posts - 1) {?>
	       	<div class="orangeline"></div>
	       	<?php }?>
       	</div>
<?php $i++; endwhile;?>       	
	</div>
	<div class="span3">
		<h3 class="orgtext">RECENTE REACTIES</h3>
		<?php 
		$comments = get_comments(array(
			'status' => 'approve',
			'number' => 4,
		));
		foreach($comments as $i => $c) {
			echo '<div>'.$c->comment_author.' op <a href="'.get_permalink($c->comment_post_ID).'" class="bluelink">'.get_the_title($c->comment_post_ID).'</a></div>';
			if($i < count($comments) - 1)
				echo '<div class="orangeline"></div>';
		}
?>
		<br><br>
		<h3 class="orgtext">BLOG</h3>
		<div class="recent_blogs">
		<?php 
		$args = array(
			'post_type' => array('blogs'), 
			'post_status' => 'publish', 
			'posts_per_page' => 3, 
			'orderby' => 'post_date',
    		'order' => 'DESC'
		);
		$query = new WP_Query($args);
		$i = 0;
		while ( $query->have_posts() ) : $query->the_post();
			$image = get_field('afbeelding');
			echo '<div class="fleft" style="margin-right: 10px"><img src="'.$image['sizes']['blog-thumbnail'].
				'"/></div><div class="fleft"><h3><a href="'.get_permalink().'" class="bluelink">'.get_the_title().'</a></h3></div><div class="clear"></div>';
			if($i < $query->found_posts - 1)
				echo '<div class="orangeline"></div>';
			$i++;
		endwhile;
		?>
		</div>
		<br><br>
		<h3 class="orgtext">TAGS</h3>
		<div class="tagcloud"><?php wp_tag_cloud(); ?></div>		
	</div>
</div>
		
<br><br>




	<?php get_footer(); ?>