Link an image to external url

Home Forums Calendar Products Community Events Link an image to external url

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1334761
    Dave
    Participant

    I need to link to an external URL from a slider that pulls in The Events Calendar events. You can see it in action on the home page just above the footer. http://kitchener.faithfm.org/

    <?php if($image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), ‘home-programs’, false)): ?>
    “>
    ” alt=””>

    <?php endif;?>

    #1334762
    Dave
    Participant

    This reply is private.

    #1335188
    Victor
    Keymaster

    This reply is private.

    #1339092
    Dave
    Participant

    This reply is private.

    #1339472
    Victor
    Keymaster

    Hi Dave!

    I can see you are using the tribe_get_organizer() function to print the href attribute. That function will return the organizer name.

    Try using the tribe_get_organizer_website_url() helper function instead.

    You can find out all the available Organizer Functions for use in the templates in the organizer.php file located at /wp-content/plugins/the-events-calendar/src/functions/template-tags/

    I hope that helps! Let me know if you have other questions.

    Best,
    Victor

    #1345384
    Dave
    Participant

    Excellent! Thank you!

    #1345392
    Victor
    Keymaster

    You’re welcome Dave! 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Link an image to external url’ is closed to new replies.