WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] modifing sidebar on a per POST basis. (2 posts)

  1. RanchNachos
    Member
    Posted 5 years ago #

    I'm using the premium theme Comfy-Plus (obtained while they had a free giveaway), so support from them is not possible without paying.. which brings me here.

    In my sidebar.php file there's a conditional section and I'm confused about it. Hopefully someone here can tell me what it means.

    <?php if (is_single()) : ?>
    <?php if (is_page()) $tle = PAGE; else $tle = POST; ?>
    <?php include TEMPLATEPATH. '/widgets/admin_menu.html'; ?>
    <?php include TEMPLATEPATH. '/widgets/writer.html'; ?>
    <?php include TEMPLATEPATH. '/widgets/info.html'; ?>
    <?php endif; ?>
    
    <?php if (is_category()) : ?>
    <?php include TEMPLATEPATH. '/widgets/category_tabs.html'; ?>
    <?php endif; ?>
    
    <?php include TEMPLATEPATH. '/widgets/subscription.html'; ?>
    <?php include TEMPLATEPATH. '/widgets/300x250ads.html'; ?>
    <?php if (!is_category()) : ?>
    <?php include TEMPLATEPATH. '/widgets/ajaxtabs.html'; ?>
    <?php endif; ?>
    <?php include TEMPLATEPATH. '/widgets/media.html'; ?>
    <?php include TEMPLATEPATH. '/widgets/widgets.html'; ?>

    My issue is the second line of code..
    <?php if (is_page()) $tle = PAGE; else $tle = POST; ?>

    I'm not sure exactly what all that means.

    Help would be appreciated.
    Thanks in advance.

  2. RanchNachos
    Member
    Posted 5 years ago #

    Nevermind. I figured it out.

Topic Closed

This topic has been closed to new replies.

About this Topic