how can I include some custom variable from functions.php?
-
For example, if I add this code to functions.php:
$mysite_address_url="http://my-site.com";And then add this to one of my .php template files(like index.php or header.php):
<?php echo($mysite_address_url); ?>It won’t work. Why is this happens and how can I achieve this with wordpress please?
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
The topic ‘how can I include some custom variable from functions.php?’ is closed to new replies.