HEX
Server: Apache
System: Linux VM-16-7-centos 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User: www (1000)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.molinta.com/wp-content/themes/ink-context-blog/inc/related-post-mainblog.php
<?php
	$ink_context_blog_tags           = get_the_category( $post->ID );
	if ( $ink_context_blog_tags ) {
		$ink_context_blog_tag_ids = array();
		foreach ( $ink_context_blog_tags as $ink_context_blog_individual_tag ) {
		$ink_context_blog_tag_ids[] = $ink_context_blog_individual_tag->term_id;
		}
		$ink_context_blog_args     = array(
		'category__in'        => $ink_context_blog_tag_ids,
		'orderby'             => 'date',
		'post__not_in'        => array( $post->ID ),
		'posts_per_page'      => 4,
		'ignore_sticky_posts' => 1,
	);
	$ink_context_blog_my_query = new wp_query( $ink_context_blog_args );
	if ( $ink_context_blog_my_query->have_posts() ) { ?> 
		<div class="related-post-block">
				<h4 class="other-title"><?php echo esc_html( get_theme_mod( 'context_blog_mainblog_related_post_text','' ) ); ?></h4> 
				<div class="related-post-mainblog">
                    <div class="row">
                        <?php
                        while ( $ink_context_blog_my_query->have_posts() ) :
                            $ink_context_blog_my_query->the_post(); ?>
                            <div class="col-lg-3 col-md-6 col-6">
								<div class=" hover-trigger blog-snippet" >
									<a href="<?php the_permalink(); ?>" class="img-holder" aria-label='<?php the_title_attribute(); ?>'>
										<?php the_post_thumbnail( 'context-blog-main-blog-2-538X382' ); ?>                    
									</a>
									<?php if ( has_post_thumbnail() ): ?>
										<div class="blog-content yes_image">
									<?php else : ?>
										<div class="blog-content no_image">
									<?php endif; ?>
										<h5 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
										</div>								</div>
                            </div> <?php
                        endwhile;
                        wp_reset_postdata();
                        ?>
                    </div>
				</div>                   
			</div> 
		<?php
	}
}