• Resolved nicowebmaster

    (@nicowebmaster)


    Hello,
    I would like to know how to modify the display_organizers function present in the app / librairies / skins.php file in order to add the image to the front page of each organizer.
    How do I display the speakers for each event in my shortcode?
    Thanks
    Nicolas

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter nicowebmaster

    (@nicowebmaster)

    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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘add speakers in shortcode event’ is closed to new replies.