To get it to work in the sidebar (running Genesis and the Content Aware Sidebar plugin) I had to use the code below to pull the author id outside the loop. I am strictly an amateur but this may be where folks are having trouble adding a link in sidebars, plugins or widgets?