WordPress author article page link tag: the_ author_ posts_ link

WordPress template tags the_ author_ posts_ Link is used to output links to all the article pages of the current author, where the anchor text is the name of the “public display as” setting in the author’s profile.

We need to pay attention to the_ author_ posts_ Link() function and the_ author_ The former outputs the link of the author’s article archive page, while the_ author_ The output of the link() function is the “site” link set by the author in his personal data.

the_author_posts_link()

the_ author_ posts_ The link() function does not receive any parameters and can be called directly.

Examples of function usage

<p>作者:<?php the_author_posts_link(); ?></p>

Extended reading

the_ author_ The link() function is located in: WP includes / author- template.php

Related tags:

  • the_ author()
  • get_ the_ author()
  • get_ the_ author_ id()
  • the_ author_ link()
  • get_ the_ author_ link()
  • the_ author_ meta()
  • get_ the_ author_ meta()
  • the_ author_ posts()
  • get_ the_ author_ posts()
  • get_ author_ posts_ url()
  • get_ the_ modified_ author()
  • the_ modified_ author()
  • wp_ dropdown_ users()
  • wp_ list_ authors()
Related Article
WordPress comment date tag: comment_date

WordPress template tags comment_ Date is used to output the date of a comment, usually in a custom comment template. Read more

WordPress comment summary tag: comment_excerpt

WordPress template tags comment_ Excerpt is used to output the summary of comments. The default output is 20 characters. It Read more

WordPress comment time tag: comment_time

WordPress template tags comment_ Time is used to output the publishing time of the current comment, which is the same Read more

WordPress RSS format comment author name tag: comment_author_rss

WordPress template tags comment_ author_ RSS is used to output the comment author name in RSS format, which has no Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image