I have managed to force child categories to use parent category template with this code:
<?php
if (array_search($_GET["cat"], array("0","1","8","9","10","11","12","13")) > 0)
{
get_sidebar('blog');
}
elseif (array_search($_GET["cat"], array("0","3","4")) > 0)
echo "something";
else
{
echo "all others";
echo $_GET["cat"];
get_sidebar('tere');
}
?>
It works splendid for categories but not for single posts that are under these child categories. How can i make those posts force to use their categories templates?
Thank You. The first part quite explained the stuff and from what i read quickly, it will solve my problem. I will give it a try and will inform here afterwards.
As for the post id 24 – it was just an example to explain that there are some posts under sub category…