Plugin Contributor
webnus
(@webnus)
Hello @nicowebmaster,
You can use this trick:
$speaker_id = get_post_meta( get_the_ID(), 'mec_speaker_id', true );
$speaker_name = (array) wp_get_post_terms( get_the_ID(), 'mec_speaker' )['0'];
if ( $speaker_name['name'] ) {
?>
<div class="mec-design">
<div class="mec-speaker-name"><?php echo esc_html( $speaker_name['name'] ); ?></div>
</div>
<?php
}
Note: you need to customize it, so please find the main class by search in MEC and then use it.
Best Regards
Hello,
Sorry but the code doesn’t work. I am currently in the /webnus/modern-events-calendar-lite/app/skins/list/render.php file. For each event, I have to display the affected speakers.
what is the exact code please?
In addition, I directly modified the display_roganizer class in the plugin file (/app/library/skins.php). if i update it will be erased. how to modify this in my child theme?
Thanks
Nicolas
Plugin Contributor
webnus
(@webnus)
Hi @nicowebmaster,
Regarding the speaker, please contact us via this email: support@webnus.net.
Regarding the customization in the child theme, yes, you should use the steps explained in this article: https://webnus.net/dox/modern-events-calendar/overriding-mec-shortcodes-skin/.
Best Regards