the_author [ WordPress Function ]
| Parameters: |
|
| Links: | |
| See: | |
| Returns: |
|
| Defined at: |
|
Display the name of the author of the current post.
The behavior of this function is based off of old functionality predating get_the_author(). This function is not deprecated, but is designed to echo the value from get_the_author() and as an result of any old theme that might still use the old behavior will also pass the value from get_the_author().
The normal, expected behavior of this function is to echo the author and not return it. However, backwards compatibility has to be maintained.
Source
<?php
function the_author( $deprecated = '', $deprecated_echo = true ) {
if ( !empty( $deprecated ) )
_deprecated_argument( __FUNCTION__, '2.1' );
if ( $deprecated_echo !== true )
_deprecated_argument( __FUNCTION__, '1.5', __('Use <code>get_the_author()</code> instead if you do not want the value echoed.') );
if ( $deprecated_echo )
echo get_the_author();
return get_the_author();
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- the_author - WordPress Codex
Description. The author of a post can be displayed by using this Template Tag. This tag must be used within The Loop. To return to PHP rather than displaying, ...
codex.wordpress.org - WordPress › Support » the_author() not displaying anything, ideas?
Hi, just recently installed version 2.5 and for some reason the template tag ' the_author' is not working with the default theme nor my custom theme. I checked the ...
wordpress.org - StephenKing.com - About the Author
The Author. Stephen Edwin King was born in Portland, Maine in 1947, the second son of Donald and Nellie Ruth Pillsbury King. After his parents separated ...
www.stephenking.com - Alignment of the_content and the_author tags - Stack Overflow
Apr 7, 2012 ... How do you align tags like the_content and the_author(), both vertically and horizontally? It seems like the_content is set in stone. When I say ...
stackoverflow.com
Gebruikersdiscussies [ wordpress.org ]
- chrisob120 on "the_author does not display"
- chrisob120 on "the_author does not display"
- lee@digitalacorn on "the_author does not display"
- aletalk on "the_author does not display"
- lee@digitalacorn on "the_author does not display"
- aletalk on "the_author does not display"
- lee@digitalacorn on "the_author does not display"
- aletalk on "the_author does not display"
- hendersonl on "Cannot make the_author template tag work properly"
- hendersonl on "Cannot make the_author template tag work properly"