get_the_author_link [ WordPress Function ]
get_the_author_link ( No parameters )
| Uses: | |
| Defined at: |
|
Soorgelijke functies: get_the_author_login, get_the_author_id, get_author_link, the_author_link, get_the_author_url
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_attr( sprintf(__("Visit %s’s website"), get_the_author()) ) . '" rel="author external">' . get_the_author() . '</a>';
} else {
return get_the_author();
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/get the author link « WordPress Codex
Description. This tag returns a link to the Website for the author of a post. The Website field is set in the user's profile (Administration > Users > Your Profile).
codex.wordpress.org - #20047 (get_the_author_link() Should default to rel="author ...
I believe sirzooro is correct. In this instance the get_the_author_link() gets the website URL that is entered into the text field on a user's profile which is usually an ...
core.trac.wordpress.org - テンプレートタグ/get the author link - WordPress Codex 日本語版
2010年7月5日 ... この項目「テンプレートタグ/get the author link」は、翻訳チェック待ちの項目です。加筆 、訂正などを通して、Codex ドキュメンテーションにご協力下さい。
wpdocs.sourceforge.jp - get_the_author_link | A HitchHackers guide through WordPress
Feb 12, 2011 ... 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, ...
hitchhackerguide.com