Support » Plugin: Co-Authors Plus » functions vs. template tags

Viewing 1 replies (of 1 total)
  • Hugh

    (@sillinguist)

    I got it to work, so I suppose everything above is true.

    However, I have another question related to this plugin. So I have a situation where I want one icon to show if there are two (co)authors, I have another icon I want to show if it is author (A) and a third icon I want to show if it is author (B). How do I arrange the if else statement? Do I do it on some sort of Author ID or based on the output of the Authors’ names? Do I have to count the returned elements?

    I think the logic would be like the following, (but I am not sure of that either)

    if more than one author, then image #1 elseif
    if author(A), then image#2 else image#3,
     endif.
Viewing 1 replies (of 1 total)
  • The topic ‘functions vs. template tags’ is closed to new replies.