Add organizer image to organizer details in single event

Home Forums Calendar Products Events Calendar PRO Add organizer image to organizer details in single event

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1602734
    Nicolas Lorach
    Participant

    Hello,

    I want to add the organizer image in the organizer details section of the single event.

    Tweaking just a bit one of your helpdesk threads I added the following snippet to functions.php and it seems to work. Is it a correct solution or could it cause problems?

    Thanks,

    <?php
    /* The Events Calendar Pro
    * Show venue image and organizer image on single event page
    * Paste the below in your child theme’s functions.php file
    *
    * For $size you can use: thumb, medium, large, full
    * For $link you can use: true or false; links to the event page.
    */

    function add_organizer_image_to_single_organizer_description() {
    $size = ‘thumb’;
    $link = false;
    $organizer_id = tribe_get_organizer_id();
    echo tribe_event_featured_image( $organizer_id, $size, $link );
    }
    add_action (‘tribe_get_organizer_details’, ‘add_organizer_image_to_single_organizer_description’);
    ?>

    #1604331
    Sky
    Keymaster

    Hi there,

    Thanks for reaching out. I’d be happy to help with your question.

    Looking at the code you provided, everything looks straight forward to me. If it is working without issue, you’re good to go.

    Hope that helps!

    Thanks,
    Sky

    #1622080
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add organizer image to organizer details in single event’ is closed to new replies.