• Resolved lippy

    (@lippy)


    I would like the organizors email addresses to be a clickable link (and ideally their phone number a hyperlink too).

    The html is just stripped out of those field when I try to enter it … is there a way round this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor GeoffBel

    (@geoffbel)

    Hey @lippy,

    First off, I would like to apologize for the delay answering.
    We are currently experiencing a higher level of requests than usual.

    Please rest assured that we are working hard at correcting this situation.
    We appreciate your patience while we try to normalize things.

    Thank you for reaching out.

    You can probably accomplish what you are looking for using filters

    add_filter( 'tribe_get_phone', 'filter_link_the_phone' );
    
    function filter_link_the_phone( $phone ) {
        return '<a href="tel:' . $phone . '">' . $phone . '</a>';
    }
    /**
     * Convert organizer emails into live "mailto:" links that users can click on.
     *
     * @param  $email
     * @return string
     */
    function organizer_live_email_link( $email ) {
    	if ( ! is_email( $email ) || ! is_singular( Tribe__Events__Main::POSTTYPE ) ) return $email;
    	return '<a href="mailto:' . esc_attr( $email ) . '">' . esc_html( $email ) . '</a>';
    }
    
    add_filter( 'tribe_get_organizer_email', 'organizer_live_email_link' );

    Have a great day!

    Geoff B.

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Organizer email address not a link’ is closed to new replies.