wp get page url code example
Example 1: get wordpress page link by id
echo get_page_link($page_id);
Example 2: current url wordpress
global $wp;
echo home_url( $wp->request )
Example 3: wordpress get link
<a href="<?php the_permalink(); ?>">
echo get_page_link($page_id);
global $wp;
echo home_url( $wp->request )
<a href="<?php the_permalink(); ?>">