Support » Networking WordPress » code to use diffrent single.php

  • Resolved joloshop

    (@joloshop)


    Hello,

    I am trying to get a taxonomy slug to open a diffrent taxonomy single.php

    I tryed

    <?php $post = $wp_query->post;
    if(appthemes_get_custom_taxonomy('slug', $post->ID, APP_TAX_STORE) == 'name') {
    include(TEMPLATEPATH . '/single-coupon-1.php');
    } else {
    include(TEMPLATEPATH . '/single-coupon-2.php');
    }
    ?>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I would like to get diffrent Stores in this taxonomy to open in diffrent single.php.

    But I failed (name = Storename)

    I can show the store name with this php code:
    <?php echo appthemes_get_custom_taxonomy($post->ID, APP_TAX_STORE, 'slug'); ?>
    Any body can help???

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    Is this only failing on a Multisite network or something else specific? Cause… otherwise, I think this would be better off in Themes so someone who’s great with that can help you 🙂

    sorry wrong Section 🙁

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘code to use diffrent single.php’ is closed to new replies.