How to echo the author's name with a link to the author's post
-
I have this piece of code…
echo "<a href='".get_permalink($post_id)."' title='". $p->post_title ."'>" . $p->post_title . "</a> ";
Instead of displaying the post title I’d like it to display the post’s author’s name (but still link to the post)
Thanks heaps if you can help
Pete
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to echo the author's name with a link to the author's post’ is closed to new replies.