Support » Fixing WordPress » the same author on a category
7 years, 5 months ago
I have two categories on my site (http://www.ohnoono.com): news and blog.
I would like to have the authors name on all blog posts. But on a news post it would be cool if the author is just admin, oh no ono or something like that. Can i do this without having to make a user for that purpose only?
Using the template tag, the_author(), or the_author_posts_link(), allows you to display an author name.
A Conditional Tag such as in_category could be used to display “admin” if a post is in a particular category.
Stepping Into Template Tags
Stepping Into Templates
7 years, 4 months ago
great, thank you