I'm using Exec-PHP to execute code, and it's working. I want to be able to set a variable once upon & access that variable in individual posts.
PHP in WordPress - Setting & Accessing Variables
7
I'm using Exec-PHP to execute code, and it's working.
I want to be able to set a variable once upon & access that variable in individual posts.
I tried putting the code in header.php, then about everywhere else.
But when I put
<?php echo $var_name; ?> in the post, it's blank.
Help?
thanks,
PCRoger.
I want to be able to set a variable once upon & access that variable in individual posts.
I tried putting the code in header.php, then about everywhere else.
But when I put
<?php echo $var_name; ?> in the post, it's blank.
Help?
thanks,
PCRoger.
- mywebwork
- PCRoger
- [1] reply
- Dan Liptak
- PCRoger
- Dan Liptak
Next Topics on Trending Feed
-
7