wordpress get url of page id code example
Example 1: get wordpress page link by id
echo get_page_link($page_id);
Example 2: get the current page id in wordpress
$page_id = get_queried_object_id();
Example 3: get id by url wordpress
// https://developer.wordpress.org/reference/functions/url_to_postid/
url_to_postid( string $url )