Does anyone know the WP plugin that allow display text link ads base on category?
<?php if ( is_category('cat') ): ?>
<!-- Insert code for cat ad here -->
<?php elseif ( is_category( 'dog') ): ?>
<!-- Insert code for cat ad here -->
<?php else: ?>
<!-- Insert code for generic ad here -->
<?php endif; ?>
if (is_home() ) {
include(TEMPLATEPATH."/banner.php");
} else if ( is_category( 'gay-dicks' ) || post_is_in_descendant_category( 25 ) ) {
include(TEMPLATEPATH."/bangay.php");
} else {
include(TEMPLATEPATH."/banner.php");
}
if ( in_category( 'gay-dicks' ) || post_is_in_descendant_category( 25 ) ) {
include(TEMPLATEPATH."/sidebar-gay.php");
} else {
include(TEMPLATEPATH."/sidebar.php");
}

Comment