HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/dodolodge-net/wp-content/themes/hotel-wp/templates/template-parts/related-posts.php
<?php
/**
 * Related Post
 *
 */

$related         = thim_get_related_posts();
$related_columns = thim_get_related_columns_class( 'col-sm-6' );

if ( $related->have_posts() ) {
	?>
	<section class="related-archive">
		<h3 class="related-title"><?php esc_html_e( 'You Might Also Like', 'hotel-wp' ); ?></h3>
		<?php
		echo '<ul class="archived-posts row">';
		while ( $related->have_posts() ) {
			$related->the_post();
			if ( has_post_thumbnail() ) {
				?>
				<li <?php post_class( $related_columns ); ?>>
					<div class="category-posts clear">
						<?php thim_feature_image( 370, 300, 'thumbnail' ); ?>
						<div class="rel-post-text">
							<div class="entry-meta">
								<?php if ( get_theme_mod( 'show_date_meta_tags', true ) ) :
									thim_entry_meta_date();
								endif; ?>
							</div>
							<h5 class="entry-title">
								<a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_title(); ?></a>
							</h5>
						</div>
					</div>
				</li>
				<?php
			} else { ?>
				<li <?php post_class( $related_columns ); ?>>
					<div class="category-posts clear">
						<div class="rel-post-text">
							<div class="entry-meta">
								<?php thim_entry_meta_date(); ?>
							</div>
							<h5 class="entry-title no-images">
								<a href="<?php echo esc_url( get_the_permalink() ); ?>" title="<?php echo esc_attr( get_the_title() ); ?>"><?php the_title(); ?></a>
							</h5>
						</div>
						<div class="des-related">
							<?php the_excerpt(); ?>
						</div>
					</div>
				</li>
			<?php }
		}
		echo '</ul>';
		?>
	</section><!--.related-->
	<?php
}

wp_reset_postdata();

?>