Home › Forums › Calendar Products › Events Calendar PRO › Inaccurate documentation in source code for tribe_get_organizer_link()
- This topic has 8 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
July 17, 2013 at 1:08 am #55647
Todd
ParticipantThe source-code documentation for the function tribe_get_organizer_link() – found in the-events-calendar/public/template-tags/organizer.php – says “Organizer Website Link; * Returns the event Organizer Name with a link to their supplied website url “. But i think that’s misleading – this function is for the Organizer’s page on this website, NOT “their supplied website url”. That’s done in a different function – tribe_get_organizer_website_link(). Right?
July 18, 2013 at 6:01 pm #56011Leah
MemberHi Todd,
I apologize for the delayed response. We’re swamped with support requests right now, so we’re a bit behind our usual 24 hour guarantee. Someone will be looking at this post shortly to get you a more substantial response. I appreciate your patience.
Best,
LeahJuly 19, 2013 at 9:14 am #56102Jonah
ParticipantHi Todd,
No, the tribe_get_organizer_link() does what it says – it returns the organizers name linked to their supplied website. The tribe_get_organizer_website_link() will just return the link HTML, no name. Does that make sense or are you finding something different?
– Jonah
July 19, 2013 at 11:22 am #56128Todd
Participanti am seeing tribe_get_organizer_link() returns the Organizers name linked to that organizer’s permalink on MY website – the page that uses the Single-Organizer.php template. I am not seeing tribe_get_organizer_link() return a link to the organizer’s website, as entered in his cpt post.
July 24, 2013 at 1:10 pm #56940Jonah
ParticipantHi Todd,
You are right, I see the issue now. It seems to be it would work better if an organizer website is supplied to use that link and if not, default to the organizer permalink. I’ve created a ticket proposing this change, and at the very least get the code documentation corrected.
Let me know if you need anything else with this.
– Jonah
July 24, 2013 at 1:23 pm #56944Todd
ParticipantThanks for following up on this Jonah. My 2-cents is that it works very nicely already, and the functionality should not change.
Currently, in the Organizer meta-group, the Organizer’s NAME links to his permalink, and the Organizer’s WEBSITE (if provided) links away to his website.
If the organizer-name also linked to his website, we’d have two links away to his website, and no links to his permalink page on my site (which nicely lists all his events).
So my personal suggestion would be to simply update the documentation, and keep the current functionality.
July 24, 2013 at 1:25 pm #56945Todd
ParticipantAnd.. while we’re talking about the Organizer-Website Link …
I wrote a little filter for that, changing the linked text to “See Organizer Website”, rather than displaying the full URL. In my case that url is often long enough to break my layout, since these meta-groups get only 1/3 of the page width.
So again my 2-cents — i’d like to see an OPTION in the wp-admin (either globally, or per event, or per organizer?) to enter a custom string for the linked-text, rather than the full URL.
July 25, 2013 at 10:21 am #57142Jonah
ParticipantGotcha Todd, I’ll update the ticket to clarify this. If you’d like the extra organizer linked text, please submit your feature request to our Uservoice page: http://tribe.uservoice.com/forums/195723-feature-ideas
Another option you could do before we would add that feature is use something like http://www.advancedcustomfields.com/ to add the custom fields yourself.
Cheers,
JonahJuly 7, 2015 at 6:27 am #979700Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Inaccurate documentation in source code for tribe_get_organizer_link()’ is closed to new replies.
