WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Mailto link setup (5 posts)

  1. Radmacdaddy
    Member
    Posted 1 year ago #

    I'd like to have the person's name in my the-events-calendar.php link to their website, like it does in single.php

    also, to have the email be a mailto link.

    I have a customized Events list: http://shamanscircle.com/workshops/workshop-welcome/

    I've customized line 80 of the-events-calendar.php for the list as so, for the get contact, email & phone.

    <style= "font-style:normal""text-align: left; ">Contact: '.tribe_get_organizer(get_the_ID()).'</><br><style= "font-style:normal""text-align: left; ">'.tribe_get_organizer_email(get_the_ID()).' '.tribe_get_organizer_phone(get_the_ID()).'</></br>

    I see the string in single.php... web link:

    <?php if ( tribe_get_organizer_link( get_the_ID(), false, false ) ) : ?>
    			<dt class="event-label event-label-organizer"><?php _e('Contact:', 'tribe-events-calendar') ?></dt>
    			<dd class="vcard author event-meta event-meta-author"><span class="fn url"><?php echo tribe_get_organizer_link(); ?></span></dd>
          <?php elseif (tribe_get_organizer()): ?>
    			<dt class="event-label event-label-organizer"><?php _e('Contact:', 'tribe-events-calendar') ?></dt>
    			<dd class="vcard author event-meta event-meta-author"><span class="fn url"><?php echo tribe_get_organizer(); ?></span></dd>
    		<?php endif; ?>

    and mailto:

    <?php if ( tribe_get_organizer_email() ) : ?>
    			<dt class="event-label event-label-email"><?php _e('Email:', 'tribe-events-calendar') ?></dt>
    			<dd itemprop="email" class="event-meta event-meta-email"><a href="mailto:<?php echo tribe_get_organizer_email(); ?>"><?php echo tribe_get_organizer_email(); ?></a></dd>
    		<?php endif; ?>

    Thanks

    http://wordpress.org/extend/plugins/the-events-calendar/

    [No bumping, thank you.]

  2. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Hey radmacdaddy. Thanks for the post here, and for your follow-up. While this may be outside the scope of what we can provide (since we aren't really able to help with customizations for non-PRO users), I know you've been active on the forum for a while here and I want to see if we can point you in the right direction.

    As such, I've asked Jonah from our dev team to take a look here and see if he has any advice. No guarantees we'll be able to solve it but it's worth a shot. Stay tuned and thanks for your patience so far.

  3. jonahcoyote
    Member
    Posted 1 year ago #

    Hey radmacdaddy,

    I'm not sure I understand what you are asking here. By default, if there is an email and website input for an organizer, it will be used on the single event page. Are you looking to have this same functionality on the events list?

    Thanks,
    Jonah

  4. Barry Hughes
    Member
    Plugin Author

    Posted 1 year ago #

    Hi radmacdaddy! Barry from the community team here: just checking in to see if you need any more help here? Otherwise we'll close this issue out at our end.

  5. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Going to mark this one resolved, radmacdaddy, as we haven't heard back from you. Let me know if you disagree.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic