• Resolved braino

    (@braino)


    hello, i don’t need a detail view of the event when clicking it. is it possible to link to external websites (booking websites) when clicking on the event in the list view?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @braino ,

    Thank you for reaching out.

    What you want to accomplish here is possible if you populate the event’s Website URL field (see https://go.screenpal.com/watch/cZ6Vi1VSLKH).

    You can then use the following code snippet, which you can append on your theme’s functions.php file to change link your events on the front end to the event’s Website URL.

    add_filter ( 'tribe_get_event', function ( $post ) {
    $website_url = tribe_get_event_website_url( $post->ID );
    // Only swaps link if set
    if ( ! empty( $website_url ) ) {
    $post->permalink = $website_url;
    }
    return $post;
    } );
    Plugin Support Darian

    (@d0153)

    Hi there,

    It appears that we haven’t heard back from you in a while, so I’ll assume that the matter has been resolved. If you need any more help, feel free to start a new thread and we’ll be happy to assist you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.