WordPress Child Theme -


I use the following code in my single.php file, depending on the user is viewing a different single template I use to show the file. .

  & lt ;? Php if (in_category ('Portfolio')) {Include (tempaypit. '/single-work.php'); } Otherwise (in_category ('blog')) {included (tempaypit. '/single-blog.php'); }? & Gt;  

The problem is that I am using child theme and therefore it will try to include files with the parent theme instead of the child theme. How do I get it to include it with a child theme instead?

Confusingly stylepace << code> instead of TEMPLATEPATH .


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -