Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_the_author_link [ WordPress Function ]

get_the_author_link ( No parameters )
Uses:
Defined at:



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


<?php
function get_the_author_link() {
    if ( 
get_the_author_meta('url') ) {
        return 
'<a href="' get_the_author_meta('url') . '" title="' esc_attrsprintf(__("Visit %s&#8217;s website"), get_the_author()) ) . '" rel="author external">' get_the_author() . '</a>';
    } else {
        return 
get_the_author();
    }
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics