HEX
Server: Apache
System: Linux server11 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64
User: web78 (5081)
PHP: 7.4.33
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/clients/client1/web78/web/wp-content/themes/bfastmag/template-parts/content-fp2.php
<?php
/**
 * Template for displaying bfastmag frontpage section.
 *
 * @package WordPress
 * @subpackage bfastmag
 */

$wp_query = new WP_Query(
	array(
		  'posts_per_page' => $bfastmag_block_max_posts,
		  'order' => 'DESC',
		  'ignore_sticky_posts' => true,
		  'no_found_rows'       => true,
		  'category_name' => ( $bfastmag_block_category != 'all' ? $bfastmag_block_category : '' ),
		)
);

if ( $wp_query->have_posts() ) : ?>
	<div class="post-section bfastmag-fp-s2">
	<div class="row">

	<?php
	while ( $wp_query->have_posts() ) : $wp_query->the_post();
 		$category = get_the_category();
		$postid = get_the_ID();
	?>

	<div class="col-sm-6">
	<article <?php post_class('entry tp-post-item tp-item-block eb-small rowItem animate animate-moveup animate-fadein'); ?> >
	  <div class="tp-post-thumbnail bfastmag-thumb-small">
 		  <figure>
			  <a href="<?php the_permalink(); ?>" title="<?php echo get_the_title(); ?>">
					<?php
					if ( has_post_thumbnail() ) {
 
							  the_post_thumbnail( 'bfastmag_blk_small_thumb' );
						 
					} else {
						  echo '<img src="' . get_template_directory_uri() . '/assets/images/default-image.jpg" />';
					}
					?>
				  </a>
			  </figure> <!-- End figure -->
			</div> <!-- End .tp-post-thumbnail -->

			<h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
 
			  <div class="entry-meta">
 				<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" class="entry-author"> <?php the_author(); ?></a>
 			  	<span class="tp-post-item-date"> <?php echo get_the_date( ); ?></span>

			  </div> <!-- End .entry-meta -->
		  </article> <!-- End .tp-item-block -->
		</div> <!-- End .col-sm-6 -->
	<?php
	  endwhile;
		?>

	</div> <!-- End .row -->
	</div> <!-- End .post-section -->
<?php endif;
wp_reset_postdata(); ?>