I'm trying to link a to 3 different authors by author ID to their author page.
<ol>
<li>(author/adrian-cole/)</li>
<li>(author/steve-helme/)</li>
<li>(author/scott-oneill/)</li>
</ol>
How would I go about doing this?
Example:
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!
<ol>
<li>(author/adrian-cole/)</li>
<li>(author/steve-helme/)</li>
<li>(author/scott-oneill/)</li>
</ol>
How would I go about doing this?
Example:
Code:
<div>Adrian Cole <a href="<?php get_author_posts_url(get_the_author_meta('ID')==1) ?>">Read more</a></div>
<div>Steve Helme <a href="<?php get_author_posts_url(get_the_author_meta('ID')==2) ?>">Read more</a></div>
<div>Scott O'Neill <a href="<?php get_author_posts_url(get_the_author_meta('ID')==3) ?>">Read more</a></div>
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!