[the event calendar] PHP returns variable, but shouldn't
-
I simply don’t understand why this code behaves the way it does. I just want it to echo eighter A or B, but it writes the the organizer_link and A (like this http://www.google.comA)
<?php $organizer_link = tribe_get_organizer_link( get_the_ID(), false, true); if ($organizer_link !== '') { echo 'A' ;} else echo 'B'; ; ?>tribe_get_organizer_link is from The Event Calendar plugin where I found this documentation: http://tri.be/support/documentation/the-events-calendar-template-tags-organizer-functions/
Can anyone tell me what’s wrong?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[the event calendar] PHP returns variable, but shouldn't’ is closed to new replies.