Results 1 to 1 of 1

Thread: PHP include in a taxonomy ( ad category )

  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 in a taxonomy ( ad category )

    Hi there,

    for getting some content above the ad listings on certain taxonomies, i modified the taxonomy-ad_cat.php
    I inserted following code:

    <div class="shadowblock_out">

    <div class="shadowblock">

    <?php if(is_tax( 'rassewelpen-kaufen', $term = 'rassewelpen-kaufen' )); {include ('hundewelpen_kaufen.php');} ?>

    </div><!-- /shadowblock -->

    </div><!-- /shadowblock_out -->

    The include of the file hundewelpen_kaufen.php is working, but its being displayed not only on the taxonomy with slug 'rassewelpen-kaufen', but also on all other taxonomies. It should be displayed only on this certain taxonomy or ad category with slug 'rassewelpen-kaufen'

    Whats wrong? Can Dimitris help?

    I am using the newest classipress and wordpress version.

    Thx Henrik

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] WP 4.2.1 - Category - Taxonomy Selecting Fix
    By frcamp in forum ClassiPress General Discussion
    Replies: 3
    Last Post: May 8th, 2015, 02:12 PM
  2. Is it possible include a image to each category?
    By felixr in forum ClassiPress General Discussion
    Replies: 6
    Last Post: May 28th, 2013, 06:43 PM
  3. Change Listing Category Taxonomy
    By iisark in forum Vantage General Discussion (Legacy)
    Replies: 5
    Last Post: January 12th, 2013, 07:41 AM
  4. Category ordering using taxonomy mod no longer works?
    By wangruo115 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: March 6th, 2012, 02:40 AM
  5. Replies: 3
    Last Post: October 20th, 2011, 01:44 PM