New answers tagged

2

A note about the actual message you're getting from PHP. When you define a constant, you should do it with a string. define(SINGLE_PATH, TEMPLATEPATH.'/single/'); The first parameter is the constant name - when you call define the constant doesn't exist yet. This would take care of the message from PHP: define('SINGLE_PATH', TEMPLATEPATH.'/single/'); ...


5

You have a lot of issues here. Stay away from defining globals and constants if you can. The global scope is an evil place to be. WordPress has made a huge mess of the global scope already, don't make it a bigger mess than it already is. You can make use a static variable inside your function/filter Avoid using TEMPLATEPATH. You should use ...



Top 50 recent answers are included