Conditional based on author template or role
-
Hi!
We currently have different author templates setup like author-this.php for users with the “this” role and author-that.php for authors with that “that” role etc.
I need to setup a conditional in our header to display different things based on those different authors/templates.
I could be wrong but using the is_archive seems to blanket all of them regardless of what I try to add with it.
is_author doesn’t seem to address user roles.
So I can’t seem to find a way to combine a conditional or anything to control them separately. Any ideas? Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Conditional based on author template or role’ is closed to new replies.