WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] code to use diffrent single.php (3 posts)

  1. joloshop
    Member
    Posted 1 year ago #

    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???

  2. 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 :)

  3. joloshop
    Member
    Posted 10 months ago #

    sorry wrong Section :-(

Topic Closed

This topic has been closed to new replies.

About this Topic