Get WordPress author link by ID


Staff member
I'm trying to link a to 3 different authors by author ID to their author page.


How would I go about doing this?


&lt;div&gt;Adrian Cole &lt;a href="&lt;?php get_author_posts_url(get_the_author_meta('ID')==1) ?&gt;"&gt;Read more&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;Steve Helme &lt;a href="&lt;?php get_author_posts_url(get_the_author_meta('ID')==2) ?&gt;"&gt;Read more&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;Scott O'Neill &lt;a href="&lt;?php get_author_posts_url(get_the_author_meta('ID')==3) ?&gt;"&gt;Read more&lt;/a&gt;&lt;/div&gt;

This will be in the sidebar.php file as "profile widgets" so the author ID can't be grabbed from the author who published the post

Im guessing this wont be in the loop? am wrong? Im new to wordpress ha!