Is there a way to have different author pages depending on the authors role. I.e. lets say a administrator has a certain author template, a editor has a different one, subscriber a different ones again, etc etc? Or just some sort of if statement within the same template displaying certain fields if the person that authors page belongs to is of a certain role display that field?
I found the following what I thought would do exact what I wanted but seems to do the exact opposite which I don’t think it’s supposed to! It shows contents by the role of whom ever is logged in and displays the logged in usernot the user on the authors page! I put this in fucntions then called it on the authors opage: