To remove My sessions section from speaker’s profile page:
1) Please copy wp-content/themes/khore/speaker-content.php to wp-content/themes/khore-child
2) Open wp-content/themes/khore-child/speaker-content.php
3) Around line number 48, you can find:
<div class=”col-xs-12″>
<!– news__session –>
<div class=”news__session container”>
<div class=”row”>
<div class=”col-xs-12″>
<h2>MY SESSIONS</h2>
</div>
<?php
if ($sessions_loop->have_posts()):
while ($sessions_loop->have_posts()):
$sessions_loop->the_post();
$session_speakers = get_post_meta(get_the_ID(), ‘session_speakers_list’, true);
if ($session_speakers && is_array($session_speakers) && in_array($speaker_id, $session_speakers)) {
$date = get_post_meta(get_the_ID(), ‘session_date’, true);
$locations = wp_get_post_terms(get_the_ID(), ‘session-location’, array(‘fields’ => ‘all’));
$time = get_post_meta(get_the_ID(), ‘session_time’, true);
$end_time = get_post_meta(get_the_ID(), ‘session_end_time’, true);
if (!empty($time)) {
$time_parts = explode(‘:’, $time);
if (count($time_parts) == 2)
$time = date(get_option(“time_format”), mktime($time_parts[0], $time_parts[1], 0));
}
if (!empty($end_time)) {
$time_parts = explode(‘:’, $end_time);
if (count($time_parts) == 2)
$end_time = date(get_option(“time_format”), mktime($time_parts[0], $time_parts[1], 0));
}
$tracks = wp_get_post_terms(get_the_ID(), ‘session-track’, array(‘fields’ => ‘ids’, ‘count’ => 1));
if ($tracks && count($tracks) > 0)
$color = EF_Taxonomy_Helper::ef_get_term_meta(‘session-track-metas’, $tracks[0], ‘session_track_color’);
else
$color = ”;
?>
<div class=”col-xs-12 col-lg-6″>
<article class=”news__session-item”>
<header>
<time><?php echo $time; ?>
– <?php echo $end_time; ?></time>
<h3 <?php if (!empty($color)) echo(” style=’color:$color;'”); ?>><?php echo!empty($locations) ? $locations[0]->name : ”; ?></h3>
</header>
<p>
<?php the_title(); ?>
</p>
<!– tags –>
<div class=”tags tags__small”>
<i class=”fa fa-bookmark-o”></i>
<?php
if ($tracks && count($tracks) > 0) {
foreach ($tracks as $track) {
$color = EF_Taxonomy_Helper::ef_get_term_meta(‘session-track-metas’, $track, ‘session_track_color’);
$term = get_term_by(‘id’, $track, ‘session-track’);
?>
<div>
<a href=”#”><?php echo $term->name; ?></a>
</div>
<?php
}
}
?>
</div>
<!– /tags –>
<!– btn –>
<a href=”<?php the_permalink(); ?>”
class=”btn btn_2″><?php _e(‘MORE INFO’, ‘khore’); ?></a>
<!– /btn –>
</article>
</div>
<?php
}
endwhile;
wp_reset_postdata();
endif;
?>
</div>
</div>
<!– /news__session –>
</div>
4) Remove the above code.
5) Save the file.