Is there a was to get the organizer featured image in the single event template?

Home Forums Calendar Products Events Calendar PRO Is there a was to get the organizer featured image in the single event template?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1301330
    Michael
    Participant

    I m trying to get the featured image of an organizer in the event single page.
    As i see It is possible to get the meta with moduls/meta.php and from there modules/meta/organizer.php.
    There we can get all kinds of meta like phone, email, website with:
    $phone = tribe_get_organizer_phone();
    $email = tribe_get_organizer_email();
    $website = tribe_get_organizer_website_link();

    Is there something like tribe_get_organizer_featuredimage(); ?
    I found this thread

    Event Organizer image


    But that does not really help.

    Thanks for your answers.

    #1301997
    Andras
    Keymaster

    Hey Michael,

    Thanks for going Pro and welcome to the forums!

    You got an awesome question there and I might have an answer for you.

    Organizers are stored just like posts and other custom post types, so you could get the featured image with the get_the_post_thumbnail() function of WordPress, you just need to provide a post ID.

    You can get the IDs of the organizers with this function: tribe_get_organizer_ids()

    And for future reference you can find a list of all functions here.

    Hope this helps you get started! Let me know.

    Cheers,
    Andras

    #1302172
    Michael
    Participant

    Thanks Andràs,
    you pointed out the obvious.
    Exactly what i needed. 😉

    “I was standing on the line” as we Germans say.

    Best,
    Michael

    #1302496
    Andras
    Keymaster

    Micha, bin sehr froh zu hören dass das geholfen hat. 🙂

    Wie ist das auf Deutsch? Ich war auf der Strecke? Ich stand auf der Linie? 🙂

    Is there anything else in this topic I can help you with, or can we close this as resolved?

    Grüsse

    Andras

    #1305853
    Michael
    Participant

    Ich stand auf der Leitung.

    #1306619
    Andras
    Keymaster

    Hehe, danke dir!

    Since you marked the ticket resolved I am going to close it. If you need anything else related to this topic or another please post a new one in the forum and we will be happy to help you out.

    Freundliche Grüsse

    Andras

    PS: If you like our plugins, and you didn’t yet do so 🙂 we would be happy to receive a review in the wordpress.org repository. Thanks!
    https://wordpress.org/support/plugin/the-events-calendar/reviews/

    PS2: We’d be also grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!

     

     

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Is there a was to get the organizer featured image in the single event template?’ is closed to new replies.