How-to pass a variable from functions.php to post?
-
Hi guys,
I added a function to the functions.php. This function will set a variable, let’s call it $test. I need to access this variable within the loop. How would I do this? I obviously can’t create a global variable in a function, can I?
I am using a plugin to write php code in posts and need this variable within the loop.
Anyone has experience with this and would help me?
Thanks,
sOliver
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How-to pass a variable from functions.php to post?’ is closed to new replies.