Answers for "wordpress get page url"

PHP
5

get templete uri

<img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" width="" height="" alt="" />
Posted by: Guest on July-24-2020
2

wordpress get template url

// Get template directory example:
<img src="<?php echo get_template_directory_uri(); ?>/images/logo.png" />

// If you use child theme you will have to use another function:
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/logo.png" />
Posted by: Guest on July-13-2020
0

get wordpress page link by id

echo get_page_link($page_id);
Posted by: Guest on May-13-2020
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

Code answers related to "wordpress get page url"

Browse Popular Code Answers by Language