Definition:
function get_the_author_link() {}
Retrieve either author’s link or author’s name.
If the author has a home page set, return an HTML link, otherwise just return the author’s name.
Source code
function get_the_author_link() { if ( get_the_author_meta('url') ) { return '<a href="' . get_the_author_meta('url') . '" title="' . esc_attr( sprintf(__("Visit %s’s website"), get_the_author()) ) . '" rel="external">' . get_the_author() . '</a>'; } else { return get_the_author(); } }
1799
No comments yet... Be the first to leave a reply!