get_the_permalink
get_the_permalink ( $post = 0, $leavename = false )
Parameters:- (int|WP_Post) post Optional. Post ID or post object. Default is the global `$post`.
- (bool) leavename Optional. Whether to keep post name or page name. Default false.
See:Returns:- (string|false) The permalink URL. False if the post does not exist.
Defined at: - Introduced in WordPress: 3.9.0
- Deprecated in WordPress: —
Description
Retrieves the full permalink for the current post or post ID.This function is an alias for get_permalink().