Linking Organizer Featured Image on Event Page

Home Forums Calendar Products Events Calendar PRO Linking Organizer Featured Image on Event Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1024832
    Brent Kozlowski
    Participant

    I would like to display the organizers featured image on the single events page, I’ve figured out how to grab the organizers featured image, but I can’t seem to return the organizer_link around the featured image.

    Here’s my code:

    $organizer_id = tribe_get_organizer_id();
    $image = get_the_post_thumbnail($organizer_id);
    
    <?php echo tribe_get_organizer_link( $post_id, $full_link = false, $echo = $image  ); ?>

    or

    $organizer_id = tribe_get_organizer_id();
    $image = get_the_post_thumbnail($organizer_id);
    
    <a href=" ' . echo tribe_get_organizer_link( $post_id, $full_link = false  ) . ' " ><?php echo $website; ?></a>

    Thanks!

    #1024978
    Barry
    Member

    Hi there!

    How about something along these lines:

    $organizer_id = tribe_get_organizer_id();
    $image        = get_the_post_thumbnail( $organizer_id );
    $link         = esc_url( get_permalink( $organizer_id ) );
    
    echo "<a href='$link'>$image</a>";
    #1025453
    Brent Kozlowski
    Participant

    Worked like a charm! Thanks!

    #1025461
    Barry
    Member

    Happy to help 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Linking Organizer Featured Image on Event Page’ is closed to new replies.