I have this lines to get different template, I can get the desired template but also i'm getting the default template at the end of theme. I tried to skip the code with goto but this fuction is unavailable :D (old resourse) and breaking the code shows the malfuction message
"Fatal error: Cannot break/continue 1 level in... bla bla"
<?php {if (in_category('diario') ) { include (TEMPLATEPATH . '/diario.php');
} if (in_category('predicacion')) { include (TEMPLATEPATH .'/predicacion.php');
} if (in_category('audio')) { include (TEMPLATEPATH .'/audible.php');
} if (in_category('video')) { include (TEMPLATEPATH .'/video.php');
} else {
include (TEMPLATEPATH .'/single_default.php');
}} ?>
I also tried this lines, a copy from WP tutorial.
<?php if ( in_category('diario') ) { ?>
<?php include (TEMPLATEPATH . '/diario.php'); ?>
<?php } if (in_category('predicacion')) { ?>
<?php include (TEMPLATEPATH .'/predicacion.php'); ?>
<?php } if (in_category('audio')) { ?>
<?php include (TEMPLATEPATH .'/audible.php'); ?>
<?php } if (in_category('video')) { ?>
<?php include (TEMPLATEPATH .'/video.php'); ?>
<?php } else { ?>
<?php include (TEMPLATEPATH .'/single_default.php'); ?>
<?php } ?>
When no selected desired template the single_default is displayed correctly.
