WordPress:Template Tags/the author posts link
来自站长百科
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 WordPress:Template Hierarchy of WordPress:Author Templates. This tag must be used within WordPress: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.