I have a custom php page outside of wordpress, this page is connecting also to a external database, and get resultat form a sql query on a variable
i use require('../wp-blog-header.php') and require('../wp-load.php') to integrate with wordpress.
now i need to use this variable on the functions.php of my wordpress theme.
i do on my external page :
<head>
<connect to my database>
<my query>
<get resulte on $variable>
<require('../wp-blog-header.php')>
<require('../wp-load.php')>
but when i use $variable on my functions.php it do not work ?