the_author() not working outside the loop

I will answer my own question here.

The reason the user information didn’t display is because the php tags need the author ID when used outside the loop.

For instance the following tag:

<?php the_author(); ?>

Should be like this:

<?php the_author_meta('display_name', 1); ?>

This is explain quite well here.

Now the code works just fine.

deneme bonusu veren sitelerbahis siteleripulibet girişdeneme bonusutürkçe altyazılı pornocanlı bahis casinocanlı bahis casino siteleriOnwin Güncel Girişholiganbetholiganbet girişholiganbet güncel girişnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewsnewslandorbet