author – the_author function is displaying wrong name and url

Question

There is a problem by using the_author();
in file author.php I use this code to display author name heading

<h1 class="page-title"><a>آخرین اخبار</a> <a href="<?php the_author_url(); ?>" target="_blank"><?php the_author(); ?></a></h1>

but the title and url are wrong and belong to another author!
Notice : this code is outside of loop

0
akhbarejadid 2 months 2022-09-25T02:14:09-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse