mage-eventpress/templates/taxonomy-category.php

26 lines
659 B
PHP
Raw Permalink Normal View History

2020-01-22 07:15:24 -05:00
<?php
get_header();
the_post();
$term_id = get_queried_object()->term_id;
?>
<div class="mep-events-wrapper">
2020-04-28 06:37:33 -04:00
<div class='mep_event_list'>
<div class="mep_cat-details">
<h1><?php echo get_queried_object()->name; ?></h1>
<p><?php echo get_queried_object()->description; ?></p>
</div>
2020-04-28 06:37:33 -04:00
<div class='mage_grid_box'>
<?php
$loop = mep_event_query(20, 'ASC', $term_id, '', '', '', 'upcoming');
while ($loop->have_posts()) {
$loop->the_post();
do_action('mep_event_list_shortcode', get_the_id(), 'three_column', 'grid');
}
wp_reset_postdata();
mep_event_pagination($loop->max_num_pages);
?>
</div>
</div>
</div>
<?php
2020-04-28 06:37:33 -04:00
get_footer();