Home › Forums › Calendar Products › Events Calendar PRO › Is there a was to get the organizer featured image in the single event template?
- This topic has 6 replies, 2 voices, and was last updated 9 years ago by
Michael.
-
AuthorPosts
-
June 21, 2017 at 1:46 pm #1301330
Michael
ParticipantI 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
But that does not really help.Thanks for your answers.
June 22, 2017 at 3:42 pm #1301997Andras
KeymasterHey 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,
AndrasJune 23, 2017 at 3:03 am #1302172Michael
ParticipantThanks Andràs,
you pointed out the obvious.
Exactly what i needed. 😉“I was standing on the line” as we Germans say.
Best,
MichaelJune 23, 2017 at 1:30 pm #1302496Andras
KeymasterMicha, 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
June 26, 2017 at 2:30 am #1305853Michael
ParticipantIch stand auf der Leitung.
June 26, 2017 at 9:36 am #1306619Andras
KeymasterHehe, 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!
-
AuthorPosts
- The topic ‘Is there a was to get the organizer featured image in the single event template?’ is closed to new replies.
