get_the_author() function redirects to home page - wordpress

I am trying to launch my own wordpress theme.

It's working fine with minor issue in development stage.

I use <a href="" class="author_name fl_left">' . get_the_author() . '</a> to print the author name link in my posts.

It's printing the proper author name. But when I click it , it redirects to the home page. why?

Is it necessary to create a author.php while we using a word press inbuilt function?

Any help highly appreciated.

Thanks, Riffaz.


It seems that you dont have authors page, then you can link user to authors post page. You can use this instead

<a href="'.the_author_posts_link().'" class="author_name fl_left">' . get_the_author() . '</a>

Need Your Help

how block screen while running a task in Windows Phone RT / 10?

windows windows-phone windows-10

I am creating a application for Windows 10, and I want know, how do I lock the screen while performing a task after I clicked in button?

.htaccess rewrite proxy with query params

regex apache .htaccess mod-rewrite

Can some regex/htaccess wizard help? I'm looking for the rewrite rule that will

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.