Answers for "get current link wordpress"

PHP
1

wordpress get site url

$url = site_url();
echo $url;
Posted by: Guest on June-17-2021
-1

current url wordpress

global $wp;
echo home_url( $wp->request )
Posted by: Guest on February-08-2021
0

wordpress get link

<a href="<?php the_permalink(); ?>">
Posted by: Guest on May-21-2020

Browse Popular Code Answers by Language