I am having a problem with my single.php understanding variables defined in a post. For Example: I have made a post using Exec-PHP and include something like Then in my single.php I have a code like For some reason the single.php does not understand what the variable $background is. Am I doing something wrong?
Your code is correct, I have also tried adding it into single.php and it is working. So.. dunno what to say. Maybe give use the code you have in single.php?