Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

dudd, médecine blog on "Wordpress use external variable on functions.php"

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 8245

Trending Articles