added if statement to display author link on posts/pages and role otherwise