how to conditionally display the author’s name
-
I’m setting up a site for a newspaper that has several authors. Each article displays the author’s name, which is usually good, but there are also a number of articles for which the author name should not be displayed. I’ve been posting them from the admin account with a nickname of “Staff”, so the byline reads “By Staff”.
What I’d like is to not display that at all.
So, for articles whose author IS NOT “Staff”, display the byline. For articles whose author IS “Staff”, don’t show anything in the byline area.
I only understand enough php to construct things piecemeal, using snippets from examples and such. I can’t figure this one out, though.
Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘how to conditionally display the author’s name’ is closed to new replies.