Results 1 to 2 of 2

Thread: PHP include for Taxonomies

  1. #1
    Thread Starter
    Junior Member rico's Avatar
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  2. #2
    Thread Starter
    Junior Member rico's Avatar
    Join Date
    Jul 2011
    Location
    Germany
    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using mutiple taxonomies
    By seolution in forum Shortys for JobRoller
    Replies: 5
    Last Post: May 20th, 2015, 09:46 AM
  2. Creating new taxonomies
    By pablorodriguez in forum JobRoller General Discussion
    Replies: 4
    Last Post: September 22nd, 2014, 06:49 AM
  3. Taxonomies Problem
    By artdecode in forum Report JobRoller Bugs
    Replies: 3
    Last Post: February 5th, 2012, 03:42 PM
  4. Custom Taxonomies
    By TheMannyMan in forum ClassiPress General Discussion
    Replies: 1
    Last Post: November 4th, 2011, 04:00 PM