the_permalink( int|WP_Post $post )
Displays the permalink for the current post.
(int|WP_Post) (Optional) Post ID or post object. Default is the global
More Information More Information
This tag must be within The Loop, and is generally used to display the permalink for each post, when the posts are being displayed. Since this template tag is limited to displaying the permalink for the post that is being processed, you cannot use it to display the permalink to an arbitrary post on your weblog. Refer to get_permalink() if you want to get the permalink for a post, given its unique post id.
|4.4.0||Added the |