HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/iskcon/public_html/wp-content/themes/tow-temple/single.php
<?php
/**
 * The template for displaying all single posts
 *
 * @package tow
 */

get_header();
?>
<div id="blog_pg" class="page-content p_4 pb-0">
    <div class="container">
       <div class="blog_pg1 row">
	      
	      <div class="col-md-8" id="post-<?php the_ID(); ?>">
		   <div class="blog_dt p-4 border_1">
		   
		   <?php

				while ( have_posts() ) :
			
				  the_post();
				  get_template_part( 'template-parts/content', '' );
				  
				endwhile; // End of the loop.
		
			?>
			   
			 <?php 
			     $related_posts = get_post_meta( get_the_ID(), 'tow_related_attached_posts', true );
				 if(is_array($related_posts)){
			 ?>  
			 
				 <div class="blog_dt3 mt-4">
					<h3 class="head_1">Related Posts</h3>
					<div class="blog_1 row mt-4">
						   <?php    
							  
							  foreach ( $related_posts as $attached_post ) {
									$post = get_post( $attached_post );
								
									$post_desc =  get_post_meta( $post->ID, 'tow_post_short_desc', 1 );
									$post_url = get_permalink( $post->ID );
									?>
									<div class="col-md-6">
									   <div class="blog_1i">
										   <div class="blog_1i1">
											 <div class="grid clearfix">
											<figure class="effect-jazz mb-0">
											<a href="<?php print esc_url( $post_url );?>"><?php print get_the_post_thumbnail( $post->ID, 'medium', array( 'class' => 'w-100', 'alt' => $post->post_title ) );?></a>
											</figure>
											</div>
									   </div>
									   <div class="blog_1i2 p-4 bg-white shadow_box">
										 <ul class="font_14">
											<li class="d-inline-block"><i class="fa fa-om col_oran me-1"></i> <?php print esc_html( get_the_author($post->ID) ); ?></li>
											<li class="d-inline-block mx-2 text-muted">|</li>
											 <li class="d-inline-block font_13"><i class="fa fa-calendar col_oran me-1"></i>  <?php echo get_the_modified_date( 'F j, Y', $post->ID );?></li>
										  </ul>
										  <h5 class="mt-3"><a href="<?php print esc_url( $post_url );?>"><?php print $post->post_title;?></a></h5>
										  <p class="mt-3"><?php print $post_desc;?></p>
										  
									   </div>
									   </div>
									 </div>
									<?php
								}
						   ?>
							 
					 
					 </div>
				 </div>
			 
			     <?php }?>
			
		   </div>
		 </div>
		 
		 
		 <div class="col-md-4">
		  
		     <?php dynamic_sidebar( 'post-sidebar' ); ?>
		 
		 </div>

	  
    </div>
</div><!-- #div -->

<?php 
get_footer();