get variables data from functions.php to template wordpress (without global variables)
You have to think into the opposite direction: Don’t pull the variables from the template, push them into it. Templates should be as simple as possible, the shouldn’t know anything about the content of the rest of your code, for example function names. In other words: use hooks. In your template: // the numbers are … Read more