HEX
Server: Apache/2
System: Linux ns65.hostinglotus.net 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: newsnnno (1225)
PHP: 8.2.20
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/newsnnno/public_html/wp-content/themes/walkerpress/template-parts/partials/popular-posts.php
<div class="popular-posts">
			
			<?php

			$popular_posts_args = array(
			   // 'posts_per_page' => $post_per_page,
			   'meta_key' => 'walker_post_viewed',
			   'orderby' => 'meta_value_num',
			   'order'=> 'DESC',
			   'posts_per_page' => 4
			);
			 
			$popular_posts_loop = new WP_Query( $popular_posts_args );
			 
			while( $popular_posts_loop->have_posts() ):
			   $popular_posts_loop->the_post(); ?>
			   <div class="popular-post-list">
				    <?php if(has_post_thumbnail()){ 
				    	$content_class='with-thumbnail';?>
					     <div class="walkerpress-post-thumbnails">
					     	<a href="<?php the_permalink()?>">
					     	 <?php  the_post_thumbnail(); ?>
					     	 	
					     	 </a>
					     </div>
				    
				   <?php } else{
				   		$content_class='without-thumbnail';
				   }?>
				    <div class="content-part <?php echo esc_attr($content_class);?>">
					   	<h6>
					   		<a href="<?php the_permalink();?>"><?php the_title();?> </a>
					 	</h6>
					 <span class="post-date">
						<?php 
						if(walkerpress_set_to_premium()){
							if(get_theme_mod('home_post_date_status','true')){
								walkerpress_custom_post_date();
							}
						}else{
							walkerpress_custom_post_date();	
						}
						
						?>
					</span>
					</div>
				</div>
			<?php endwhile;
			wp_reset_query();
			?>
		</div>