HEX
Server: nginx/1.18.0
System: Linux vcwordpress 5.15.0-174-generic #184-Ubuntu SMP Fri Mar 13 18:41:50 UTC 2026 x86_64
User: root (0)
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/bharti-foundation.stgviitor.com/wp-content/themes/lifeline/taxonomy-event_category.php
<?php
/* Template Name: Events
*/

?>

<?php
get_header();
$current_category = get_queried_object();
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array(
	'post_type' => 'lif_event',
	'post_status' => 'publish',
	'paged' => $paged,
	'tax_query'	=>	array(
		array(
			'taxonomy'	=>	'event_category',
			'field'		=>	'slug',
			'terms'		=>	$current_category->slug
		),
	),

);
$opt         = lifeline()->options();
$title_limit = lifeline_get($opt, 'event_list_title_character_limit', '15');

$ch_limit = lifeline_get($opt, 'event_list_character_limit', '15');

$style = lifeline_get($opt, 'event_listing_style');


$query = new WP_Query($args);
if ($query->have_posts()) :


?>
	<section class="gap">
		<?php if ($style == 'event-list') {
			echo '<div class="custom-continer-fluid">';
		} else {
			'<div class="container">';
		} ?>
		<div class="container">
			<div class="row">
				<?php while ($query->have_posts()) : $query->the_post();  ?>

					<?php lifeline_template_load('templates/event/taxonomy-event-category/taxonomy-event-category-grid.php', compact('title_limit', 'ch_limit')); ?>
				<?php endwhile;
				wp_reset_postdata(); ?>
				<?php lifeline_the_pagination($query->max_num_pages); ?>
			<?php endif; ?>
			</div>
		</div>
		</div>
	</section>

	<?php
	get_footer();