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
Post a Comment