Quote:
Originally Posted by amcd
If you have multiple styles, ideally they should be in a heirarchy. Just add the template to the top level and it will be inherited by child styles.
The question of how to execute php from templates is being asked frequently. The answer is that you cannot. It is not supposed to be that way. The primary objective of templating is to separate logic (php) from presentation (templates).
Search for my posts in this thread. I have explained the whole thing with code examples.
|
I knew, it was a rhetorical question, this is why I was looking for shortcuts.
By the way, you can execute code in a plugin but it's a p.i.t.a.