Template Tags/the author posts link
Материал из WordPress Wiki
Содержание |
Description
Displays a link to all posts by an author. The link text is the user's Display name publicly as field. The results of clicking on the presented link will be controlled by the Template Hierarchy of Author Templates. This tag must be used within The Loop.
Usage
%%% <?php the_author_posts_link(); ?> %%%
Examples
Use Example
Displays the link, where the default link text value is the user's Display name publicly as field.
<p>Other posts by <?php the_author_posts_link(); ?></p>
Parameters
This function takes no arguments.
Deprecated Parameters
- idmode
- (string) Sets the element of the author's information to display for the link text.