mage-eventpress/templates/single-speaker.php

49 lines
1.6 KiB
PHP
Raw Normal View History

2020-04-28 06:37:33 -04:00
<?php
get_header();
the_post();
?>
<div class="mep_events_speaker_wraper">
<div class="mep_speaker_thumbnail">
<?php the_post_thumbnail('full'); ?>
</div>
<div class="mep_speaker_name">
<h2><?php the_title(); ?></h2>
</div>
<div class="mep_speaker_details">
<?php the_content(); ?>
</div>
2020-07-20 06:01:44 -04:00
<div class='mep_event_list'>
2021-09-03 06:25:05 -04:00
<div class="mep_cat-details">
2021-10-31 07:01:04 -04:00
<h3><?php esc_html_e('All Events Of ', 'mage-eventpress');
2021-09-03 06:25:05 -04:00
the_title(); ?></h3>
</div>
<div class='mage_grid_box'>
<?php
$paged = get_query_var("paged") ? get_query_var("paged") : 1;
$args = array(
'post_type' => array('mep_events'),
'paged' => $paged,
'orderby' => 'meta_value',
'meta_key' => 'event_start_datetime',
'meta_query' => array(
array(
'key' => 'mep_event_speakers_list',
'value' => get_the_id(),
'compare' => 'LIKE'
)
)
);
2020-07-20 06:01:44 -04:00
2021-09-03 06:25:05 -04:00
$loop = new WP_Query($args);
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>
2020-04-28 06:37:33 -04:00
</div>
<?php
get_footer();