html - how to include php in wordpress footer and call on pages -


i putting in php code in wordpress footer. example,

$a = "hi"; 

and on wordpress page try echo $a; blank , not "hi. there way solve this? p.s usuing wordpress's admin dashboard

any appreciated

thanks

variables not passed between template files (header, footer, etc.). can make global.

global $a; 

and echo it. note order : if get_footer(); si called after, can't echo before...


Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -