WordPress template tags the_ Permalink is used to output the fixed link of the article, that is, the pseudo-static link address, which needs to be used in the main loop of the loop.
the_permalink( $post = 0 )
This function has no arguments, in fact the_ The permalink() function is equivalent to calling get_ Permalink ($post), passing the current article object to get_ Permalink() function and output the returned result.
Examples of function usage
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
Extended reading
the_ The permalink() function is located in: WP includes / link- template.php
Related Tags:
- permalink_ anchor()
- get_ permalink()
- post_ permalink()
- permalink_ single_ rss()