[wp-hackers] Help with including custom templates using variables

J.D. Grimes jdg at codesymphony.co
Mon Aug 12 19:07:46 UTC 2013

> Is there a way to use only one file for the alternative sidebar, and have
> conditionals within the extra file?  Rather than have so many extra sidebar
> files?

Definitely.  If each of the extra sidebar files is going to have mostly the same code, then you would probably be better off combining them and using conditionals. It depends on exactly what you are trying to do; whichever way makes the most since, do it.

- J.D.

More information about the wp-hackers mailing list