if else and the_author_aim
-
I have searched the forums quite a bout for help with this but I cannot find a solve as yet.
If have a site where there are multiple authors and each author has it’s own author page. Some authors have an aim name, others have a yahoo name and others have both.
I wuld like to autodisplay and image that is clickable to the each or all of the messenger links depending in whether or not an author has the aim and / or yahoo info entered into their profile.
I can construct the html needed that would be outputted by I cannot seem to get the results so that if the person has AIM – a certain chunk of html code is used, if a person has Yahoo – a certain chunk of html code is used or if they have both, then a 3rd resulting chunk of html code is used.
I am not even sure if I am using the if else statements correctly
‘<?php if (the_author_aim()==””) : ?>
[get html code for an image that is click able to the aim name]
<?php elseif (the_author_yim()==””) : ?>
[get html code for an image that is click able to the yahoo name]
<?php else : ?>
[get html code for an image that is click able to the aim and yahoo name]
<?php endif; ?>’Any suggestions for this?
- The topic ‘if else and the_author_aim’ is closed to new replies.