I've tried this - but it still doesn't work with the
postbit template. Why could that be?
Quote:
Originally Posted by Marco van Herwaarden
"global" is a standard PHP command that will set the variable in the global scope.
I would not do any code edits, but just put this code into a plugin, probably using the 'global_start' hook location.
|
--------------- Added [DATE]1211547826[/DATE] at [TIME]1211547826[/TIME] ---------------
To anyone who's had the same type of problem, I've found a different solution. I am ignorant as to why this worked and the other way didn't, but here it is:
Instead of referencing
$mycontent directly, I called it through
$GLOBALS, which is a
superglobal. It is an array of all global-scope variables, the keys of which are the variables' names. Therefore, I was able to call $mycontent by writing
$GLOBALS[mycontent].
This page helped me find this solution.