0

I have a list of channel entries written by different authors.

How can I create a conditional to display a link if it is a certain author?

For example I want to display a link to a specific author's Twitter account.

So: if screen_name = Bob Smith then Link

Any help appreciated!

N

1

Seems like you've already answered your own question:

{if screen_name=='Bob Smith'}link{/if}
| improve this answer | |
  • 2
    Though I would suggest checking based on author_id, in case Bob Smith changes his screen name. {if author_id == "XX"}<!-- insert Twitter code -->{/if}. – Derek Hogue Feb 10 '13 at 23:17
  • works perfectly. I should learn to trust my instinct! :) – Niall Thompson Feb 11 '13 at 0:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.