PHP include for Taxonomies
Hi there,
in order to get a content area in different ad categories right before the ad listings, i updated the taxonomy-ad_cat. I replaced this piece of code:
<div class="shadowblock_out">
<div class="shadowblock">
<div id="catrss" class="catrss"><a class="dashicons-before catrss" href="<?php echo esc_url( get_term_feed_link( $term->term_id, $taxonomy ) ); ?>" title="<?php echo esc_url( sprintf( __( '%s RSS Feed', APP_TD ), $term->name ) ); ?>"></a></div>
<h1 class="single dotted"><?php _e( 'Listings for', APP_TD ); ?> <?php echo $term->name; ?> (<?php echo $wp_query->found_posts; ?>)</h1>
<p><?php echo $term->description; ?></p>
</div><!-- /shadowblock -->
</div><!-- /shadowblock_out -->
with this code:
<div class="shadowblock_out">
<div class="shadowblock">
<h1 class="single dotted"><?php _e('','appthemes')?> <?php echo $term->name; ?> (<?php echo $wp_query->found_posts ?>)</h1>
<?php if(is_tax('rassewelpen-kaufen', $term = 'rassewelpen-kaufen')) {include ('hundewelpen_kaufen.php');} ?>
<?php if(is_tax('hunde-in-not', $term = 'hunde-in-not')) {include ('hunde-in-not.php');} ?>
<?php if(is_tax('welpen-in-not', $term = 'welpen-in-not')) {include ('welpen-in-not.php');} ?>
<?php if(is_tax('hundezuechter', $term = 'hundezuechter')) {include ('hundezuechter.php');} ?>
<?php if(is_tax('hund-entlaufen-zugelaufen', $term = 'hund-entlaufen-zugelaufen')) {include ('hund-entlaufen-zugelaufen.php');} ?>
<?php if(is_tax('rassehunde', $term = 'rassehunde')) {include ('rassehunde.php');} ?>
<?php if(is_tax('hundeschulen', $term = 'hundeschulen')) {include ('hundeschulen.php');} ?>
<?php if(is_tax('hundesitter', $term = 'hundesitter')) {include ('hundesitter.php');} ?>
<?php if(is_tax('ferien-mit-hund', $term = 'ferien-mit-hund')) {include ('ferien-mit-hund.php');} ?>
<?php if(is_tax('hundepensionen', $term = 'hundepensionen')) {include ('hundepensionen.php');} ?>
<?php if(is_tax('hundesportplaetze', $term = 'hundesportplaetze')) {include ('hundesportplaetze.php');} ?>
</div><!-- /shadowblock -->
</div><!-- /shadowblock_out -->
All the to be included files like for instance "hunde-in-not.php" are in the classipress root folder. In a former classipress version it worked fine, but now, these files weren't included. I dont need the rss link anyway.
Has anyone any idea?
Regards Henrik