wpeventmanager / wp-event-manager

WP Event Manager is a lightweight, scalable and full-featured event management plugin for adding event listing functionality to your WordPress site. The shortcode lists all the events, it can work with any theme and is really easy to setup and customise.
https://wp-eventmanager.com
34 stars 50 forks source link

Add other social media links to share as well organizer link #262

Closed Priya-Goenka closed 4 years ago

Priya-Goenka commented 4 years ago

Add linkedin, Instagram, and other social media links. Make it customizable if anyone wants to add more in future.

wpem-kishan commented 4 years ago

if you want other social media for organizer then use below code.

add_action( 'single_event_listing_organizer_single_social_end', 'wpem_organizer_social_media' ); 
function wpem_organizer_social_media($organizer_id)
{
    $organizer_linkedin  = get_post_meta($organizer_id, '_organizer_linkedin', true);
    if (!empty($organizer_linkedin))
    {
        ?>
        <div class="wpem-social-icon wpem-linkedin">
            <a href="<?php echo esc_url($organizer_linkedin); ?>" target="_blank" title="Get Connect on linkedin"><?php _e('Linkedin', 'wp-event-manager'); ?></a>
        </div>
    <?php }
}
krinaydhanani commented 4 years ago

We already provide this code.